35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
server
|
|
{
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name fullrss.alfter.us;
|
|
root /var/www/html;
|
|
|
|
index fullrss.php;
|
|
|
|
# add_header X-Frame-Options "SAMEORIGIN" always;
|
|
# add_header X-XSS-Protection "1; mode=block" always;
|
|
# add_header X-Content-Type-Options "nosniff" always;
|
|
# add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
|
# add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
|
|
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
|
# enable strict transport security only if you understand the implications
|
|
|
|
location ~ [^/]\.php(/|$)
|
|
{
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
if (!-f $document_root$fastcgi_script_name)
|
|
{
|
|
return 404;
|
|
}
|
|
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
|
|
fastcgi_pass fullrss.fullrss:9000;
|
|
fastcgi_index fullrss.php;
|
|
}
|
|
}
|