mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
update to Dockerfile to make the build much smaller.
This commit is contained in:
23
compose/nginx.conf
Normal file
23
compose/nginx.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
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/;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user