Skip to content

Instantly share code, notes, and snippets.

Created November 7, 2016 15:02
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bjoerns1983/30dff232c8ccede12f6caec7c609b0b6 to your computer and use it in GitHub Desktop.
Nginx Config for ttrss (Tiny Tiny RSS)
server {
listen 80;
listen [::]:80;
return 301 https://$server_name$request_uri;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
# SSL Settings
ssl on;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1h;
ssl_dhparam /etc/nginx/dhparam.pem;
ssl_stapling on;
ssl_stapling_verify on;
location / {
index index.php;
try_files $uri $uri/ =404;
root /var/www/ttrss;
access_log /var/log/nginx/ttrss_access.log;
error_log /var/log/nginx/ttrss_error.log info;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment