-
Notifications
You must be signed in to change notification settings - Fork 48
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
Caddy Reverse Proxy not working #79
Comments
You might want to try with some forward headers : Here is what I found, not sure how cddy works, but you could try it (you need to replace host with something, not sure if you can get the host dynamically).
Would you mind sharing your configuration once you have a working setup ? Even bettre would be to open a PR on the airsonic-docs repo with your configuration ! |
The transparent command for Caddy does all of that already if I am understanding the documentation correctly:
|
Found some documentation I missed in the inital setup. This solved the issue. You will also need to make sure Tomcat uses the correct headers for redirects. Stop your Airsonic server or docker image and: nano /path/to/airsonic/config/airsonic.properties server.use-forward-headers=true |
Looks like this issue was accidentally reopened. |
I am running airsonic in a Docker container with URL base set as airsonic.
CADDYFILE
https://mydomain.net gets redirected to http//mydomain.net after I provide valid user name and password. Seems like Airsoni is redirecting HTTPS traffic to HTTP which is not configured in Caddy or allwed through the firewall.
Hoping I am missing something simple.
Airsonic log file
airsonic.log
The text was updated successfully, but these errors were encountered: