|
|
@ -497,6 +497,27 @@ server { |
|
|
|
hostnames; |
|
|
|
include includes/wp_kaz_map; |
|
|
|
} |
|
|
|
map $http_host $castopod_kaz_map { |
|
|
|
hostnames; |
|
|
|
include includes/castopod_kaz_map; |
|
|
|
} |
|
|
|
|
|
|
|
server { |
|
|
|
server_name ~^(?<asso>.+)-__CASTOPOD_HOST__\.__DOMAIN__$; |
|
|
|
include includes/castopod_kaz_name; |
|
|
|
if ($asso = '') { |
|
|
|
set $asso $castopod_kaz_map; |
|
|
|
} |
|
|
|
include includes/port; |
|
|
|
ssl_certificate /etc/letsencrypt/live/$ssl_local_cert/fullchain.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/$ssl_local_cert/privkey.pem; |
|
|
|
include includes/proxy_params; |
|
|
|
|
|
|
|
location / { |
|
|
|
include includes/allow_ip; |
|
|
|
proxy_pass http://$asso-__CASTOPOD_HOST__.__DOMAIN__:8000; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
server { |
|
|
|
server_name ~^(?<asso>.+)-__CLOUD_HOST__\.__DOMAIN__$; |
|
|
|