**Relocate Nginx configuration to the compose directory**

- Moved `nginx.conf` from `cbreader/settings/` to `compose/` for better organization of deployment-specific files.
- Updated `docker-compose.yml` to reference the new path for Nginx configuration.
This commit is contained in:
ajurna committed 2026-10-14 12:11:07 +01:00
1 parent cc557543c5
commit 77a80dd322
2 files changed
+1 -31

No files matched your search

-30
View File
@@ -1,30 +0,0 @@
upstream cbwebreader_django {
server cbwebreader:8000;
}
server {
listen 80;
# nginx compresses only text/html by default, so the bundle and CSS need explicit types.
gzip on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_types text/plain text/css application/javascript application/json image/svg+xml application/wasm;
gzip_vary on;
location / {
proxy_pass http://cbwebreader_django;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
}
+1 -1
View File
@@ -55,7 +55,7 @@ services:
volumes: volumes:
- static_files:/static - static_files:/static
- media_files:/media - media_files:/media
- ./cbreader/settings/nginx.conf:/etc/nginx/conf.d/default.conf - ./compose/nginx.conf:/etc/nginx/conf.d/default.conf
ports: ports:
- "${WEB_PORT:-8337}:80" - "${WEB_PORT:-8337}:80"
depends_on: depends_on: