Skip to content
Permalink
Browse files

Fixed images sometimes inaccessible

  • Loading branch information
chrismaddalena committed Nov 5, 2019
1 parent 45dafa4 commit ab172677568e42a19c3e93eac73dcc479dc1aaa6
Showing with 6 additions and 0 deletions.
  1. +4 −0 compose/production/nginx/nginx.conf
  2. +2 −0 production.yml
@@ -59,6 +59,10 @@ http {
ssl_prefer_server_ciphers on;
resolver 8.8.8.8;

location /media {
alias /app/media;
}

location /admin {
try_files $uri @proxy_to_app;
}
@@ -42,6 +42,8 @@ services:
restart: unless-stopped
depends_on:
- django
volumes:
- production_staticfiles:/app/staticfiles
volumes:
- production_staticfiles:/app/staticfiles
- ./compose/production/nginx/nginx.conf:/etc/nginx/nginx.conf

0 comments on commit ab17267

Please sign in to comment.
You can’t perform that action at this time.