Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ackee loadable from subfolder/same host #323

Open
Prophet-Phoenix opened this issue Mar 6, 2022 · 2 comments
Open

Make ackee loadable from subfolder/same host #323

Prophet-Phoenix opened this issue Mar 6, 2022 · 2 comments

Comments

@Prophet-Phoenix
Copy link

Prophet-Phoenix commented Mar 6, 2022

Hi there, i really like ackee for its clear visuals and simplicity. Also i can easily set it up with docker and reverse proxy.

🐣 Is your feature request related to a problem? Please describe.

If i understand correctly, ackee can only be loaded from a different (sub)domain. For this to work, you need to setup headers etc. Also you need to open another https connection with handshake etc. which can be slowish. This is not a real problem because ackee.js loads asynchronous.

💡 Describe the solution you'd like

Configure ackee to be loadable from a subfolder. This is already doable e.g.

  • Main site hosted on example.com
  • ackee-docker reverse proxied on ackee.example.com
  • configure webserver to internally proxy example.com/ackee.js and example.com/api to same ackee-docker host as ackee.example.com.
  • embed script but change source from ackee.example.com/ackee.js to example.com/ackee.js
  • script is loaded and ackee counts visits on different hosts, but no second https connection is opened so site loads faster. Also i did not explicitly set up (cors-)headers for this and it still worked (with caddy http server)
  • ackee dashboard still reachable under ackee.example.com

I'm unsure if this breaks anything, because i couldn't find this setup in the docs. For me it is working.

📋 Additional context

This is surely more "nice to have" than a serious issue. Also maybe all of this already is implemented but i did not find it in the docs? Then please dismiss this request.

Greetings!

@dodedodo
Copy link

dodedodo commented Mar 12, 2022

This issue was already raised in #227. Pull requests #288 and #317 both address this same issue, but have not been accepted yet.

Although this issue is a duplicate, I suggest keeping this one open because #227 is closed.

@sebastian-raubach
Copy link

Are there any news on this front? Plausible currently has the same issue and I'm looking for an alternative that supports a base url. Unfortunately, ackee is in the same position as Plausible.
The reverse proxy along isn't enough as mentioned in #227 so something has to happen in the ackee codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants