mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
23 lines
400 B
Nginx Configuration File
23 lines
400 B
Nginx Configuration File
upstream cbwebreader_django {
|
|
server cbwebreader:8000;
|
|
}
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
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/;
|
|
}
|
|
|
|
} |