2017-12-20 18:02:37 -05:00
|
|
|
# Healthcheck Host which proxies to the Manager,
|
|
|
|
# thus the healthcheck ensures both services are running
|
|
|
|
server {
|
|
|
|
listen 9876 default;
|
|
|
|
server_name localhost;
|
|
|
|
|
2018-06-19 19:53:18 -04:00
|
|
|
access_log /data/logs/manager.log proxy;
|
2017-12-20 18:02:37 -05:00
|
|
|
|
|
|
|
include conf.d/include/block-exploits.conf;
|
|
|
|
|
2018-08-23 00:49:59 -04:00
|
|
|
set $server 127.0.0.1;
|
|
|
|
set $port 81;
|
|
|
|
|
2017-12-20 18:02:37 -05:00
|
|
|
location /health {
|
|
|
|
access_log off;
|
|
|
|
include conf.d/include/proxy.conf;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 404;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Default 80 Host, which shows a "You are not configured" page
|
|
|
|
server {
|
|
|
|
listen 80 default;
|
|
|
|
server_name localhost;
|
|
|
|
|
2018-06-19 19:53:18 -04:00
|
|
|
access_log /data/logs/default.log proxy;
|
2017-12-20 18:02:37 -05:00
|
|
|
|
|
|
|
include conf.d/include/assets.conf;
|
|
|
|
include conf.d/include/block-exploits.conf;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html;
|
|
|
|
root /var/www/html;
|
|
|
|
}
|
|
|
|
}
|
2018-11-02 10:06:37 -04:00
|
|
|
|
|
|
|
# Default 443 Host
|
|
|
|
server {
|
|
|
|
listen 443 ssl default;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
access_log /data/logs/default.log proxy;
|
|
|
|
|
|
|
|
ssl_certificate /data/nginx/dummycert.pem;
|
|
|
|
ssl_certificate_key /data/nginx/dummykey.pem;
|
2018-11-04 20:53:46 -05:00
|
|
|
include conf.d/include/ssl-ciphers.conf
|
2018-11-02 10:06:37 -04:00
|
|
|
|
|
|
|
return 444;
|
|
|
|
}
|