Last active
May 26, 2019 14:46
-
-
Save Mic92/4091461 to your computer and use it in GitHub Desktop.
nginx configuration for the selfoss rss readerAs I don't get notification for gist comments, please add your modification to the wiki:https://github.com/SSilence/selfoss/wiki/nginx-configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# please make sure all directories/files in public/ are readable to your webserver, as well as data/favicons | |
# If it still doesn't work look into your log files at /var/log/nginx/rss.error.log | |
upstream backend { server unix:/var/run/php-fpm.sock; } | |
server { | |
listen [::]:80; | |
listen [::]:443 ssl; | |
server_name rss.yourdomain.com; | |
root /var/www/selfoss/; | |
access_log /var/log/nginx/rss.access.log; | |
error_log /var/log/nginx/rss.error.log; | |
location ~* \ (gif|jpg|png) { | |
expires 30d; | |
} | |
location ~ ^/favicons/.*$ { | |
try_files $uri /data/$uri; | |
} | |
location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { | |
deny all; | |
} | |
location / { | |
index index.php index.html index.htm; | |
try_files $uri /public/$uri /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
fastcgi_pass backend; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just had this issue, what kind of url I should put in ?
Apparently in console i have found that all of the images and css not appear.