2022-04-20 00:29:47 +02:00
|
|
|
server {
|
|
|
|
listen [::1]:42443 ssl http2 default_server;
|
|
|
|
listen 127.0.0.1:42443 ssl http2 default_server;
|
|
|
|
|
2023-01-29 21:14:36 +01:00
|
|
|
ssl_certificate /etc/ssl/certs/servnest.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/servnest.key;
|
2022-04-20 00:29:47 +02:00
|
|
|
|
2022-10-31 23:58:27 +01:00
|
|
|
ssl_stapling off;
|
|
|
|
|
2023-01-29 21:14:36 +01:00
|
|
|
root /srv/servnest/errors;
|
2022-04-20 00:29:47 +02:00
|
|
|
try_files index.php index.html $uri $uri/;
|
|
|
|
index index.php index.html;
|
|
|
|
|
|
|
|
location / {
|
2023-01-29 21:14:36 +01:00
|
|
|
root /srv/servnest/errors;
|
2022-04-20 00:29:47 +02:00
|
|
|
try_files /index.php =500;
|
|
|
|
index index.php;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2023-01-29 21:14:36 +01:00
|
|
|
fastcgi_pass unix:/run/php-fpm/servnest.sock;
|
2022-04-20 00:29:47 +02:00
|
|
|
include /etc/nginx/inc/fastcgi.conf;
|
|
|
|
}
|
|
|
|
|
|
|
|
include /etc/nginx/inc/tls.conf;
|
|
|
|
include /etc/nginx/inc/errors.conf;
|
|
|
|
|
|
|
|
more_set_headers "Content-Security-Policy : default-src 'none'; frame-ancestors 'none';";
|
|
|
|
}
|