Installation guide for freshrss
This commit is contained in:
parent
bf1cd21864
commit
b2528b6d28
68
arch-config/Dokumente/notes/freshrss.md
Normal file
68
arch-config/Dokumente/notes/freshrss.md
Normal file
@ -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`
|
Loading…
Reference in New Issue
Block a user