21 lines
496 B
Plaintext
21 lines
496 B
Plaintext
|
server {
|
||
|
|
||
|
listen 80;
|
||
|
server_name {{ http_host }};
|
||
|
|
||
|
# Allow large attachments
|
||
|
client_max_body_size 128M;
|
||
|
|
||
|
|
||
|
location / {
|
||
|
proxy_read_timeout 90;
|
||
|
proxy_connect_timeout 90;
|
||
|
proxy_redirect off;
|
||
|
proxy_pass http://localhost:{{ web_port }};
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
}
|