Update proxy configs

This commit is contained in:
xithical 2022-01-20 17:10:05 +00:00
parent b1e4c88e1f
commit a12ff2fcf1

View File

@ -6,13 +6,20 @@ upstream crafty {
}
server {
listen 80 default_server;
listen 80;
server_name <DOMAIN>;
if ($host !~* ^<SUBDOMAIN>\.<EXAMPLE>\.com$ ) {
return 444;
}
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name <DOMAIN>;
if ($host !~* ^<SUBDOMAIN>\.<EXAMPLE>\.com$ ) {
return 444;
}
ssl_certificate <CERIFICATE_LOCATION>;
ssl_certificate_key <KEYFILE_LOCATION>;
location / {