Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Move server name configuration from app section to site section #185

Closed happy-river closed 4 years ago

happy-river commented 4 years ago

Values in the app section of config.yaml are passed through to Flask, which passes them through to Werkzeug, which complains and refuses to route if you access a server by its IP address when SERVER_NAME is defined.

If a server is behind a load balancer which terminates https, it may always be accessed by its IP address.

Move the server name to the site section of the config so that the server can know the domain it is serving without confusing Werkzeug.