From b2528b6d285d2ccdad6263173dce67d9215712ff Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 28 May 2021 13:34:20 +0200 Subject: [PATCH] Installation guide for freshrss --- arch-config/Dokumente/notes/freshrss.md | 68 +++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 arch-config/Dokumente/notes/freshrss.md diff --git a/arch-config/Dokumente/notes/freshrss.md b/arch-config/Dokumente/notes/freshrss.md new file mode 100644 index 00000000..f00072d9 --- /dev/null +++ b/arch-config/Dokumente/notes/freshrss.md @@ -0,0 +1,68 @@ +# Freshrss +## Installation +`# apt install nginx` + +Creating folders for data +`# mkdir -p /var/www/freshrss/{data,extensions}` + +Launch container +``` +# podman run -d --restart unless-stopped --log-opt max-size=10m \ + -v /var/www/freshrss/data:/var/www/FreshRSS/data \ + -v /var/www/freshrss/extensions:/var/www/FreshRSS/extensions \ + -e 'CRON_MIN=4,34' \ + -e TZ=Europe/Zurich \ + -p 8452:80 \ + --name freshrss docker://freshrss/freshrss +``` + +Nginx config +`# vim /etc/nginx/sites-available/freshrss` + +``` +server { + server_name DOMAIN_NAME; + + # Security / XSS Mitigation Headers + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Content-Type-Options "nosniff"; + + #location = / { + # return 302 https://$host/; + #} + + location / { + # Proxy main traffic + proxy_pass http://127.0.0.1:8452/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Protocol $scheme; + proxy_set_header X-Forwarded-Host $http_host; + } + + listen [IPV6]:443 ssl; #set ipv6 address + ssl_certificate /etc/letsencrypt/live/DOMAIN_NAME/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/DOMAIN_NAME/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; +} + +server { + if ($host = DOMAIN_NAME) { + return 301 https://$host$request_uri; + } + + listen [IPV6]:80; #set ipv6 address + server_name DOMAIN_NAME; + return 404; +} +``` + +Enable config +`# ln -s /etc/nginx/sites-available/(config) /etc/nginx/sites-enabled` + +Restart nginx +`# systemctl restart nginx`