mirror of
https://github.com/maciej3031/comixify.git
synced 2026-03-11 08:54:35 +00:00
23 lines
No EOL
492 B
Nginx Configuration File
23 lines
No EOL
492 B
Nginx Configuration File
upstream hello_server {
|
|
server web:8008;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
client_max_body_size 50M;
|
|
location / {
|
|
# everything is passed to Gunicorn
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect off;
|
|
proxy_pass http://hello_server;
|
|
}
|
|
location /static/ {
|
|
alias /comixify/static/;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /comixify/media/;
|
|
}
|
|
} |