Commit 8bc273ab authored by Marcos Peña's avatar Marcos Peña Committed by Marcos Peña
Browse files

Fixes images not loading in docker dev setup

parent 68ff51c2
......@@ -12,7 +12,6 @@ FORWARDED_PROTO=http
LDAP_ENABLED=False
FUNKWHALE_SPA_HTML_ROOT=http://nginx/front/
PYTHONTRACEMALLOC=0
STATIC_URL=http://localhost:8000/staticfiles/
# Uncomment this if you're using traefik/https
# FORCE_HTTPS_URLS=True
......
......@@ -132,6 +132,11 @@ Create it like this::
touch .env
These two environment variables must be included for the images to load in front-end and django admin pages::
MEDIA_URL=http://localhost:8000/media/
STATIC_URL=http://localhost:8000/staticfiles/
Create docker network
^^^^^^^^^^^^^^^^^^^^^
......
......@@ -69,7 +69,7 @@ http {
text/x-component
text/x-cross-domain-policy;
add_header Content-Security-Policy "default-src 'self' 'unsafe-eval'; connect-src 'self' 'unsafe-eval' *; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
add_header Content-Security-Policy "default-src 'self' 'unsafe-eval'; connect-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";
add_header X-Frame-Options "SAMEORIGIN" always;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment