Comments (4)
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).
header_upstream X-Forwarded-Proto https
header_upstream X-Forwarded-Host <host>
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 !
from airsonic-docs.
The transparent command for Caddy does all of that already if I am understanding the documentation correctly:
transparent - Passes thru host information from the original request as most backend apps would expect. Shorthand for:
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Port {server_port}
header_upstream X-Forwarded-Proto {scheme}
from airsonic-docs.
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
Add the following line to the bottom of the file:
server.use-forward-headers=true
https://airsonic.github.io/docs/proxy/caddy/
from airsonic-docs.
Looks like this issue was accidentally reopened.
from airsonic-docs.
Related Issues (20)
- Error in reverse proxy documentation
- Add substreamer into apps.md
- Windows installation guide issue
- install docs HOT 2
- Clarify requirements for Content-Security-Policy behind reverse proxy HOT 2
- Add page for Jukebox documentation
- FAQ with common exceptions
- Apps - is Substreamer open source? HOT 20
- sync with website docs HOT 2
- Installation Docs should provide guidance on verification of war files HOT 2
- Wrong link in Docker Installation Documentation
- Add comparison between standalone and tomcat installation HOT 6
- Add notes for specific situation such as raspberri pi installation HOT 1
- Page for transcoders in documentation not found HOT 1
- Document the required configuration HOT 9
- Centos 7 doc HOT 3
- share link disappeared HOT 1
- Rename documentation repo to airsonic-docs HOT 1
- Are the IntelliJ instructions missing -Dairsonic.development=true? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airsonic-docs.