1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-09-03 13:12:48 +02:00

fix: escape token for html context (#3966)

This commit is contained in:
Dag
2024-02-09 07:27:16 +01:00
committed by GitHub
parent ae2eb2f1d1
commit 8a6798a227
5 changed files with 25 additions and 21 deletions

View File

@@ -104,6 +104,7 @@ server {
server_name example.com;
access_log /var/log/nginx/rss-bridge.access.log;
error_log /var/log/nginx/rss-bridge.error.log;
log_not_found off;
# Intentionally not setting a root folder here
@@ -115,23 +116,22 @@ server {
alias /var/www/rss-bridge/static/;
}
# Pass off to php-fpm only when location is exactly /
# Pass off to php-fpm when location is exactly /
location = / {
root /var/www/rss-bridge/;
include snippets/fastcgi-php.conf;
fastcgi_read_timeout 45s;
fastcgi_pass unix:/run/php/rss-bridge.sock;
}
# Reduce spam
location = /favicon.ico {
access_log off;
log_not_found off;
}
# Reduce spam
location = /robots.txt {
access_log off;
log_not_found off;
}
}
```