See #880: allow using a production-builded frontend in dev to test CSP
This commit is contained in:
parent
ab73752f55
commit
c39cd010d5
1
dev.yml
1
dev.yml
|
@ -119,6 +119,7 @@ services:
|
||||||
- "${MUSIC_DIRECTORY_SERVE_PATH-./data/music}:/music:ro"
|
- "${MUSIC_DIRECTORY_SERVE_PATH-./data/music}:/music:ro"
|
||||||
- ./deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro
|
- ./deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro
|
||||||
- "${MEDIA_ROOT-./api/funkwhale_api/media}:/protected/media:ro"
|
- "${MEDIA_ROOT-./api/funkwhale_api/media}:/protected/media:ro"
|
||||||
|
- "./front:/frontend:ro"
|
||||||
networks:
|
networks:
|
||||||
- federation
|
- federation
|
||||||
- internal
|
- internal
|
||||||
|
|
|
@ -70,6 +70,9 @@ http {
|
||||||
text/x-cross-domain-policy;
|
text/x-cross-domain-policy;
|
||||||
|
|
||||||
location /front/ {
|
location /front/ {
|
||||||
|
# uncomment the following line and comment the proxy-pass one
|
||||||
|
# to use the frontend build with "yarn build"
|
||||||
|
#alias /frontend/dist/;
|
||||||
proxy_pass http://funkwhale-front/front/;
|
proxy_pass http://funkwhale-front/front/;
|
||||||
}
|
}
|
||||||
location /front-server/ {
|
location /front-server/ {
|
||||||
|
|
Loading…
Reference in New Issue