mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Update proxy configs
This commit is contained in:
parent
b1e4c88e1f
commit
a12ff2fcf1
@ -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 / {
|
||||
|
Loading…
Reference in New Issue
Block a user