2020-07-10 00:58:55 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
|
|
|
|
|
|
|
user www-data;
|
|
|
|
|
|
|
|
worker_processes 4;
|
|
|
|
|
2021-11-07 23:37:17 +01:00
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
error_log syslog:server=localhost:514 info;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2022-02-21 13:52:46 +01:00
|
|
|
include fastcgi_params;
|
|
|
|
include proxy_params;
|
|
|
|
include mime.types;
|
|
|
|
include ssl_params;
|
|
|
|
charset utf-8;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2022-02-21 13:52:46 +01:00
|
|
|
include sites-enabled/*;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2022-02-21 13:52:46 +01:00
|
|
|
log_format main '$remote_addr - $remote_user [$time_iso8601] '
|
|
|
|
'"$request" $status $body_bytes_sent '
|
|
|
|
'"$http_referer" "$http_user_agent"';
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2022-02-21 13:52:46 +01:00
|
|
|
access_log /var/log/nginx/$host.access.log main;
|
|
|
|
access_log syslog:server=localhost:514 main;
|
|
|
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 60;
|
|
|
|
server_tokens off;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2021-11-07 23:37:17 +01:00
|
|
|
proxy_intercept_errors on;
|
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
fastcgi_read_timeout 300;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
server {
|
2021-11-07 23:37:17 +01:00
|
|
|
listen 80 default_server;
|
|
|
|
listen 443 default_server ssl;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2021-11-07 23:37:17 +01:00
|
|
|
listen [::]:80 default_server;
|
|
|
|
listen [::]:443 default_server ssl;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2021-11-07 23:37:17 +01:00
|
|
|
root /var/www/html;
|
|
|
|
index index.html;
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
location /status {
|
2021-11-07 23:37:17 +01:00
|
|
|
stub_status on;
|
|
|
|
access_log off;
|
|
|
|
allow 127.0.0.1;
|
|
|
|
allow ::1;
|
|
|
|
deny all;
|
2020-07-10 00:58:55 +02:00
|
|
|
}
|
|
|
|
}
|
2020-10-28 22:56:28 +01:00
|
|
|
}
|