mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +00:00
**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:
1 parent
cc557543c5
commit
77a80dd322
2 files changed
+1
-31
No files matched your search
@@ -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
@@ -55,7 +55,7 @@ services:
|
||||
volumes:
|
||||
- static_files:/static
|
||||
- media_files:/media
|
||||
- ./cbreader/settings/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./compose/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- "${WEB_PORT:-8337}:80"
|
||||
depends_on:
|
||||
|
||||
Reference in new issue
Block a user