2020-04-03 03:54:02 +00:00
|
|
|
server {
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name {{ http_host }};
|
|
|
|
|
2020-04-20 12:43:06 +00:00
|
|
|
# set max upload size
|
|
|
|
client_max_body_size 10G;
|
|
|
|
|
2020-04-03 03:54:02 +00:00
|
|
|
location / {
|
|
|
|
|
|
|
|
proxy_set_header Host $host:$server_port;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
|
|
|
proxy_pass http://localhost:9080;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|