-
Notifications
You must be signed in to change notification settings - Fork 96
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
Unwanted redirects to localhost #392
Comments
Hello! What’s your From what I can tell you will need |
Hello there, Are all of the ones from https://github.com/mirego/accent?tab=readme-ov-file#production-setup fully required? |
I think your env var are not loaded correctly since the log should show the full URL here:
If you are statring it with docker compose, the environment is not read from the |
Maybe also dont put |
@Northernside you misspellt |
oh my fucking god |
i don't think that this is the problem but it will solve a problem later. try to remove the https:// in the canonical url. that solved the problem for me |
Yes it shows that on my machine too |
But it works |
By removing the |
oh lmao. well if I didn't remove the |
turns out |
Yes indeed, because SSL is enforced if the canonical URI is using https://github.com/mirego/accent/blob/master/config/runtime.exs#L23 |
If you’re using nginx to handle the TLS stuff, the Elixir application should not be handling it too. |
However, if nginx is handling the TLS termination and passing the https://github.com/mirego/accent/blob/master/lib/accent/endpoint.ex#L50 |
then you also have to change the |
ah i'm dumb and i can't read |
dont worry! |
Yeah |
Tried that, nothing changed 👀 |
Oh, funny thing: if I access https://translate.ebio.gg/ it returns me to https://localhost but if I access https://translate.ebio.gg/? (or any other query related input) it returns me to https://translate.ebio.gg/ AND serves the proper content. What? 😭 |
Oh oops nevermind, it seems like it was just a silly cache on my side! Thank you for all your help ❤️ |
I've tried to setup Accent and I think I got it somewhat right (can't know because your docs either aren't updated or just barely finished.. or both? it's just not user/developer friendly, that's something I can tell), I believe.
The problem now is, that I've setup an A record for translate.ebio.gg which points towards my server and the server is a Nginx reverse proxy. This is my configuration:
Yet, when accessing https://translate.ebio.gg, it just redirects the browser to localhost. Is there any reason why and any way for fixing this?
Accesing the localhost:4000 web server on the same machine seems to actually return data.
This is the Docker log:
The text was updated successfully, but these errors were encountered: