diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index 124701f0e..c6a9fd51a 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -101,7 +101,7 @@ services: - client-builder - server volumes: - - /home/github-runner/podman-volumes/server-static:/nginx/static - - /home/github-runner/podman-volumes/server-uploads:/nginx/upload + - /home/github-runner/podman-volumes/server-static:/usr/share/nginx/html/django_static + - /home/github-runner/podman-volumes/server-uploads:/usr/share/nginx/html/upload - ./nginx/custom-nginx.conf:/etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/nginx/custom-nginx.conf b/nginx/custom-nginx.conf index ac7823c1a..a87eefed9 100644 --- a/nginx/custom-nginx.conf +++ b/nginx/custom-nginx.conf @@ -7,16 +7,6 @@ server { try_files $uri $uri/ /index.html; } - # Serve static files from the Django app - location /django_static/ { - root /nginx/static/; - } - - # Serve uploaded files from the Django app - location /upload/ { - root /nginx/upload/; - } - # Proxy pass to the Django app location /server/ { proxy_pass http://server:8000;