servnest-mkosi/mkosi.extra/etc/nginx/sites/niver.test.conf

31 lines
661 B
Plaintext
Raw Normal View History

2022-04-20 00:29:47 +02:00
server {
listen [::1]:42443 ssl http2;
listen 127.0.0.1:42443 ssl http2;
server_name niver.test;
2022-09-01 04:28:30 +02:00
root /srv/niver/core;
2022-04-20 00:29:47 +02:00
include inc/tls.conf;
include inc/errors.conf;
more_set_headers "Content-Security-Policy : default-src 'none'; style-src 'self'; frame-ancestors 'none'; form-action 'self';";
2022-09-01 04:28:30 +02:00
location / {
2022-04-20 00:29:47 +02:00
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/niver.sock;
include inc/fastcgi.conf;
2022-09-01 04:28:30 +02:00
try_files /router.php =500;
2022-04-20 00:29:47 +02:00
}
2022-09-01 04:28:30 +02:00
location /css {
alias /srv/niver/core/css;
2022-04-20 00:29:47 +02:00
}
2022-08-11 22:20:06 +02:00
location /docs {
alias /srv/niver/docs;
}
2022-04-20 00:29:47 +02:00
ssl_certificate /etc/ssl/certs/niver.crt;
ssl_certificate_key /etc/ssl/private/niver.key;
}