Moved commen nginx configuration in a dedicated snippet

This commit is contained in:
Eliot Berriot 2018-03-04 16:58:37 +01:00
commit 1955005a4f
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 18 additions and 17 deletions

View file

@ -59,10 +59,11 @@ Ensure you have a recent version of nginx on your server. On debian-like system,
apt-get update
apt-get install nginx
Then, download our sample virtualhost file:
Then, download our sample virtualhost file and proxy conf:
.. parsed-literal::
curl -L -o /etc/nginx/funkwhale_proxy.conf "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/funkwhale_proxy.conf"
curl -L -o /etc/nginx/sites-enabled/funkwhale.conf "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/nginx.conf"
Ensure static assets and proxy pass match your configuration, and check the configuration is valid with ``nginx -t``. If everything is fine, you can restart your nginx server with ``service nginx restart``.