31 lines
661 B
Plaintext
31 lines
661 B
Plaintext
server {
|
|
listen [::1]:42443 ssl http2;
|
|
listen 127.0.0.1:42443 ssl http2;
|
|
server_name niver.test;
|
|
|
|
root /srv/niver/core;
|
|
|
|
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';";
|
|
|
|
location / {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/run/php-fpm/niver.sock;
|
|
include inc/fastcgi.conf;
|
|
try_files /router.php =500;
|
|
}
|
|
|
|
location /css {
|
|
alias /srv/niver/core/css;
|
|
}
|
|
|
|
location /docs {
|
|
alias /srv/niver/docs;
|
|
}
|
|
|
|
ssl_certificate /etc/ssl/certs/niver.crt;
|
|
ssl_certificate_key /etc/ssl/private/niver.key;
|
|
}
|