homelab: added freshrss

This commit is contained in:
Aly Raffauf 2024-03-30 08:51:39 -04:00
parent 0d8451cfbc
commit 84ba7591bb
2 changed files with 30 additions and 1 deletions

View file

@ -53,6 +53,18 @@
"/mnt/Archive:/Archive"
];
};
freshrss = {
ports = [ "0.0.0.0:8080:80" ];
image = "freshrss/freshrss:latest";
environment = {
TZ = "America/New_York";
CRON_MIN = "1,31";
};
volumes = [
"freshrss_data:/var/www/FreshRSS/data"
"freshrss_extensions:/var/www/FreshRSS/extensions"
];
};
};
};
}
}

View file

@ -22,6 +22,7 @@
127.0.0.1 nixcache.raffauflabs.com
127.0.0.1 plex.raffauflabs.com
127.0.0.1 podcasts.raffauflabs.com
127.0.0.1 news.raffauflabs.com
'';
};
@ -47,6 +48,22 @@
};
};
virtualHosts."news.raffauflabs.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = true; # needed if you need to use WebSocket
extraConfig = ''
proxy_buffering off;
proxy_redirect off;
# Forward the Authorization header for the Google Reader API.
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
'';
};
};
virtualHosts."nixcache.raffauflabs.com" = {
enableACME = true;
forceSSL = true;