switch to tt-rss

This commit is contained in:
Cyryl Płotnicki 2022-10-22 20:34:06 +01:00
parent 7baa5e8a53
commit 7d5807c26a
2 changed files with 66 additions and 10 deletions

View file

@ -5,21 +5,16 @@
./vpsfree1-vpsadminos.nix
../cli.nix
../nginx.nix
./foundryvtt.nix
./cryptpad.nix
./syncthing-relay.nix
./backups.nix
./blog.cyplo.net.nix
./search.nix
./cryptpad.nix
./foundryvtt.nix
./matrix-front.nix
./rss.nix
./search.nix
./syncthing-relay.nix
];
services.dockerRegistry = {
enable = true;
listenAddress = "vpsfree1.raptor-carp.ts.net";
enableGarbageCollect = true;
};
systemd.extraConfig = ''
DefaultTimeoutStartSec=900s
'';

View file

@ -0,0 +1,61 @@
{ config, pkgs, inputs, lib, ... }:
let
port = 8080;
domain = "news.cyplo.dev";
in {
imports = [ ../nginx.nix ];
services.nginx = {
virtualHosts = {
"${domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://localhost:" + toString port; };
};
};
};
containers.rss = {
autoStart = true;
forwardPorts = [{
containerPort = port;
hostPort = port;
}];
config = { config, pkgs, ... }:
let
root = config.services.tt-rss.root;
pool = config.services.tt-rss.pool;
in rec {
services.tt-rss = {
enable = true;
selfUrlPath = "https://${domain}";
virtualHost = null;
registration.enable = true;
};
services.nginx = {
enable = true;
virtualHosts = {
"${domain}" = {
listen = [{
addr = "0.0.0.0";
port = port;
}];
root = "${root}/www";
locations."/" = { index = "index.php"; };
locations."^~ /feed-icons" = { root = "${root}"; };
locations."~ \\.php$" = {
extraConfig = ''
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:${
config.services.phpfpm.pools.${pool}.socket
};
fastcgi_index index.php;
'';
};
};
};
};
};
};
}