Fixed #20: added admin serving under /api/, minor tweaks to production nginx and env file

This commit is contained in:
Eliot Berriot 2017-06-26 19:18:31 +02:00
commit 80cfd7180a
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ DJANGO_SETTINGS_MODULE=config.settings.production
DJANGO_SECRET_KEY=
# You don't have to edit this
DJANGO_ADMIN_URL=^admin/
DJANGO_ADMIN_URL=^api/admin/
# Update it to match the domain that will be used to reach your funkwhale
# instance

View file

@ -20,7 +20,7 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://funkwhale-api/api/;
}
@ -28,6 +28,6 @@ server {
alias /srv/funkwhale/data/media/;
}
location /staticfiles/ {
alias /srv/funkwhale/data/staticfiles/;
alias /srv/funkwhale/data/static/;
}
}