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

Running Accent Behind Nginx Reverse Proxy #464

Open
jan-vuurstaek-uhasselt opened this issue Feb 17, 2025 · 0 comments
Open

Running Accent Behind Nginx Reverse Proxy #464

jan-vuurstaek-uhasselt opened this issue Feb 17, 2025 · 0 comments

Comments

@jan-vuurstaek-uhasselt
Copy link

Description

I am trying to run Accent behind an Nginx reverse proxy. My goal is to make the tool available under a subpath, such as https://example.com/accent.

To achieve this, I have set the following environment variables in my setup:

CANONICAL_URL=https://example.com/accent  
STATIC_URL=https://example.com/accent  

However, when I check the logs of the Docker container, I notice that Accent.Endpoint is reported as https://example.com, with the /accent path seemingly removed.

Expected Behavior

Accent should correctly serve under https://example.com/accent instead of https://example.com.

Actual Behavior

The reported Accent.Endpoint appears to ignore the /accent subpath, potentially causing issues with routing and asset loading.

Steps to Reproduce

Set up Accent behind an Nginx reverse proxy.
Configure the environment variables as shown above.
Check the logs of the Accent Docker container.

Questions

Is there an additional configuration required to properly serve Accent under a subpath?
Am I missing any settings that would allow Accent to respect the CANONICAL_URL and STATIC_URL values fully?

Any guidance would be greatly appreciated. Thanks!

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

1 participant