i missed a semi-colon...

This commit is contained in:
xithical 2021-12-14 00:44:56 +00:00
parent 00735c402b
commit f6b1cf68af

View File

@ -1,37 +1,37 @@
# Config based on https://gitlab.com/lewishill211/crafty-controller-https # Config based on https://gitlab.com/lewishill211/crafty-controller-https
# Edits for 4.0 compatibility by pretzelDewey - https://gitlab.com/amcmanu3 # Edits for 4.0 compatibility by pretzelDewey - https://gitlab.com/amcmanu3
upstream crafty { upstream crafty {
server "<DOMAIN>"; server "<DOMAIN>";
} }
server { server {
listen 80 default_server; listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent; rewrite ^(.*) https://$host$1 permanent;
} }
server { server {
listen 443 ssl; listen 443 ssl;
server_name <DOMAIN>; server_name <DOMAIN>;
ssl_certificate <CERIFICATE_LOCATION>; ssl_certificate <CERIFICATE_LOCATION>;
ssl_certificate_key <KEYFILE_LOCATION>; ssl_certificate_key <KEYFILE_LOCATION>;
location / { location / {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_redirect off; proxy_redirect off;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection; proxy_set_header Connection $http_connection;
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host proxy_set_header Host $http_host;
proxy_pass https://localhost:8443; proxy_pass https://localhost:8443;
proxy_buffering off; proxy_buffering off;
client_max_body_size 0; client_max_body_size 0;
proxy_connect_timeout 3600s; proxy_connect_timeout 3600s;
proxy_read_timeout 3600s; proxy_read_timeout 3600s;
proxy_send_timeout 3600s; proxy_send_timeout 3600s;
send_timeout 3600s; send_timeout 3600s;
} }
} }