Fixed broken nginx conf for federation
This commit is contained in:
parent
a0553ccf7d
commit
6aab6369c0
|
@ -9,7 +9,7 @@ if [ -n "$COMPOSE_PROJECT_NAME" ]; then
|
||||||
fi
|
fi
|
||||||
echo "Copying template file..."
|
echo "Copying template file..."
|
||||||
cp /etc/nginx/funkwhale_proxy.conf{.template,}
|
cp /etc/nginx/funkwhale_proxy.conf{.template,}
|
||||||
sed -i "s/X-Forwarded-Host \$host:\$server_port/X-Forwarded-Host ${FUNKWHALE_HOSTNAME}:${FORWARDED_PORT}/" /etc/nginx/funkwhale_proxy.conf
|
sed -i "s/X-Forwarded-Host \$host:\$server_port/X-Forwarded-Host ${FUNKWHALE_HOSTNAME}/" /etc/nginx/funkwhale_proxy.conf
|
||||||
sed -i "s/proxy_set_header Host \$host/proxy_set_header Host ${FUNKWHALE_HOSTNAME}/" /etc/nginx/funkwhale_proxy.conf
|
sed -i "s/proxy_set_header Host \$host/proxy_set_header Host ${FUNKWHALE_HOSTNAME}/" /etc/nginx/funkwhale_proxy.conf
|
||||||
sed -i "s/proxy_set_header X-Forwarded-Port \$server_port/proxy_set_header X-Forwarded-Port ${FORWARDED_PORT}/" /etc/nginx/funkwhale_proxy.conf
|
sed -i "s/proxy_set_header X-Forwarded-Port \$server_port/proxy_set_header X-Forwarded-Port ${FORWARDED_PORT}/" /etc/nginx/funkwhale_proxy.conf
|
||||||
sed -i "s/proxy_set_header X-Forwarded-Proto \$scheme/proxy_set_header X-Forwarded-Proto ${FORWARDED_PROTO}/" /etc/nginx/funkwhale_proxy.conf
|
sed -i "s/proxy_set_header X-Forwarded-Proto \$scheme/proxy_set_header X-Forwarded-Proto ${FORWARDED_PROTO}/" /etc/nginx/funkwhale_proxy.conf
|
||||||
|
|
|
@ -180,6 +180,7 @@ Libraries created this way will have a different visibility level depending of y
|
||||||
This script will contain other database-related operations, but the impact will remain
|
This script will contain other database-related operations, but the impact will remain
|
||||||
invisible.
|
invisible.
|
||||||
|
|
||||||
|
|
||||||
Upgrade instructions
|
Upgrade instructions
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -195,3 +196,15 @@ On non docker-setups::
|
||||||
python api/manage.py script migrate_to_user_libraries --no-input
|
python api/manage.py script migrate_to_user_libraries --no-input
|
||||||
|
|
||||||
If the scripts ends without errors, you're instance should be updated and ready to use :)
|
If the scripts ends without errors, you're instance should be updated and ready to use :)
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
If you use nginx, ensure your funkwhale_proxy.conf file does not contain this:
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||||
|
|
||||||
|
If you have this line present, replace it with:
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
|
||||||
|
And reload your nginx server.
|
||||||
|
|
Loading…
Reference in New Issue