29 lines
747 B
Plaintext
29 lines
747 B
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name __HOST_DOMAIN__;
|
||
|
|
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
http2 on;
|
||
|
|
server_name __HOST_DOMAIN__;
|
||
|
|
|
||
|
|
ssl_certificate __SSL_PATH__/fullchain.pem;
|
||
|
|
ssl_certificate_key __SSL_PATH__/privkey.key;
|
||
|
|
|
||
|
|
client_max_body_size 0;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:__APP_PORT__;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_set_header X-Forwarded-Proto https;
|
||
|
|
proxy_set_header X-Forwarded-Host $host;
|
||
|
|
proxy_set_header X-Forwarded-Port 443;
|
||
|
|
proxy_read_timeout 300;
|
||
|
|
}
|
||
|
|
}
|