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