You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
2 years ago
|
server {
|
||
|
listen 443 ssl;
|
||
|
server_name rss.ovalwonder.com;
|
||
|
root /var/www/rss;
|
||
|
index index.php index.html index.htm;
|
||
|
ssl_certificate /etc/dehydrated/certs/rss.ovalwonder.com/fullchain.pem;
|
||
|
ssl_certificate_key /etc/dehydrated/certs/rss.ovalwonder.com/privkey.pem;
|
||
|
ssl_protocols TLSv1.2 TLSv1 TLSv1.1;
|
||
|
|
||
|
error_log /var/log/nginx/rss.error;
|
||
|
access_log /var/log/nginx/rss.access;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
index index.php index.html index.htm;
|
||
|
|
||
|
location ~ /\.git {
|
||
|
return 404;
|
||
|
}
|
||
|
location ~ /\.ht {
|
||
|
return 404;
|
||
|
}
|
||
|
|
||
|
location ~* \.php$ {
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||
|
fastcgi_index index.php;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_buffer_size 16k;
|
||
|
fastcgi_buffers 4 16k;
|
||
|
}
|
||
|
|
||
|
}
|