Add :443 decoy
This commit is contained in:
23
installer.sh
23
installer.sh
@ -1223,6 +1223,7 @@ write_nginx_decoy() {
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
root ${APP_ROOT}/app/decoy;
|
root ${APP_ROOT}/app/decoy;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
@ -1237,6 +1238,28 @@ server {
|
|||||||
fastcgi_pass unix:${PHP_FPM_SOCK};
|
fastcgi_pass unix:${PHP_FPM_SOCK};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl default_server;
|
||||||
|
listen [::]:443 ssl default_server;
|
||||||
|
|
||||||
|
root ${APP_ROOT}/app/decoy;
|
||||||
|
index index.php index.html;
|
||||||
|
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
ssl_certificate ${SSL_DIR}/baldcanary.crt;
|
||||||
|
ssl_certificate_key ${SSL_DIR}/baldcanary.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files \$uri /index.php\$is_args\$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include snippets/fastcgi-php.conf;
|
||||||
|
fastcgi_pass unix:${PHP_FPM_SOCK};
|
||||||
|
}
|
||||||
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f "$NGINX_SITES_ENABLED/default"
|
rm -f "$NGINX_SITES_ENABLED/default"
|
||||||
|
|||||||
Reference in New Issue
Block a user