Fix(Docker): dev set-up
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2533>
This commit is contained in:
parent
4490fba5bb
commit
706f3b56e0
1
.env.dev
1
.env.dev
|
@ -12,6 +12,7 @@ FORWARDED_PROTO=http
|
||||||
LDAP_ENABLED=False
|
LDAP_ENABLED=False
|
||||||
FUNKWHALE_SPA_HTML_ROOT=http://nginx/
|
FUNKWHALE_SPA_HTML_ROOT=http://nginx/
|
||||||
PYTHONTRACEMALLOC=0
|
PYTHONTRACEMALLOC=0
|
||||||
|
MEDIA_ROOT=/data/media
|
||||||
|
|
||||||
# Uncomment this if you're using traefik/https
|
# Uncomment this if you're using traefik/https
|
||||||
# FORCE_HTTPS_URLS=True
|
# FORCE_HTTPS_URLS=True
|
||||||
|
|
|
@ -92,7 +92,7 @@ http {
|
||||||
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
|
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
|
||||||
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||||
|
|
||||||
proxy_pass http://funkwhale-front/embed.html;
|
proxy_pass http://funkwhale-front;
|
||||||
expires 1d;
|
expires 1d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,14 +107,6 @@ http {
|
||||||
proxy_pass http://funkwhale-api/api/subsonic/rest/;
|
proxy_pass http://funkwhale-api/api/subsonic/rest/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media/__sized__/ {
|
|
||||||
alias /protected/media/__sized__/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /media/attachments/ {
|
|
||||||
alias /protected/media/attachments/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /.well-known/ {
|
location /.well-known/ {
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
proxy_pass http://funkwhale-api;
|
proxy_pass http://funkwhale-api;
|
||||||
|
|
|
@ -53,6 +53,7 @@ To set up your Docker environment:
|
||||||
```text
|
```text
|
||||||
MEDIA_URL=http://localhost:8000/media/
|
MEDIA_URL=http://localhost:8000/media/
|
||||||
STATIC_URL=http://localhost:8000/staticfiles/
|
STATIC_URL=http://localhost:8000/staticfiles/
|
||||||
|
MEDIA_ROOT=/data/media
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Create a network for federation support
|
3. Create a network for federation support
|
||||||
|
|
Loading…
Reference in New Issue