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

baseUrl #227

Closed
alazhar opened this issue Feb 2, 2021 · 3 comments
Closed

baseUrl #227

alazhar opened this issue Feb 2, 2021 · 3 comments

Comments

@alazhar
Copy link

alazhar commented Feb 2, 2021

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

Able to specify baseUrl. So instead of use subdomain like ackee.example.com, We can use example.com/ackee

💡 Describe the solution you'd like

add the environment variable to set baseUrl with default /

❓ Describe alternatives you've considered

📋 Additional context

Add any other context about the feature request here.

@electerious
Copy link
Owner

I don't think that's possible. Ackee creates it's own server which waits for connections on a defined port. That's usually port 80/443 which is reachable via a (sub)domain, but not a directory on the server. It might be possible via a reverse proxy (nginx), but that belongs to the server setup and is nothing I can help with.

@dodedodo
Copy link

Hey! I'm looking for this feature as well.

You're right, the BaseURL option must work in conjunction with a reverse proxy. However, a reverse-proxy alone is not enough to change ackee's URL.

The BaseURL should act as a kind of prefix to the url's that the ackee UI tries to fetch.

Example: I configured a reverse proxy to serve domain.tld/ackee. The login page shows up just fine, but when I try to login, ackee sends a request to domain.tld/api. If the BaseURL is set to /ackee this request would instead be directed at domain.tld/ackee/api.

Another option would be to change every URL to a relative one. If ackee requests ./api instead of /api, it would work with whatever base URL.

Would it be feasible to implement this, @electerious?

I might take a stab at this if I find the time.

@dodedodo
Copy link

Hey @electerious, can you take a look at my pull request? #317

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