Correct various settings for ttrss
This commit is contained in:
parent
ef3216b98a
commit
8c44a187a0
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
(import "${custom.inputs.self}/modules/nginx-fpm" {
|
||||
dataDir = "/mnt/data/ttrss/app";
|
||||
dataDir = "/var/lib/ttrss/html";
|
||||
inherit custom domain;
|
||||
})
|
||||
"${custom.inputs.self}/modules/postgresql"
|
||||
|
@ -24,7 +24,7 @@
|
|||
backend = "docker";
|
||||
containers."ttrss" = {
|
||||
image = "ghcr.io/nebucatnetzer/tt-rss-aarch64/ttrss-fpm-pgsql-static";
|
||||
autoStart = false;
|
||||
autoStart = true;
|
||||
environment = {
|
||||
TZ = "Europe/Zurich";
|
||||
TTRSS_DB_USER = "ttrss";
|
||||
|
@ -35,10 +35,10 @@
|
|||
};
|
||||
environmentFiles = [ config.age.secrets.ttrssEnv.path ];
|
||||
ports = [
|
||||
"8080:80"
|
||||
"9000:9000"
|
||||
];
|
||||
volumes = [
|
||||
"/var/lib/ttrss/config:/config"
|
||||
"/var/lib/ttrss/html:/var/www/html"
|
||||
];
|
||||
extraOptions = [ "--add-host=host.docker.internal:host-gateway" ];
|
||||
};
|
||||
|
|
|
@ -9,20 +9,12 @@ in
|
|||
inherit custom hostname;
|
||||
})
|
||||
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
|
||||
(import "${custom.inputs.self}/modules/nginx-proxy" { inherit custom domain; })
|
||||
(import "${custom.inputs.self}/modules/nginx-proxy" {
|
||||
domain = "rss-bridge.2li.ch";
|
||||
port = "8082";
|
||||
inherit custom;
|
||||
})
|
||||
"${custom.inputs.self}/modules/rss-bridge"
|
||||
(import "${custom.inputs.self}/modules/ttrss-postgres" { inherit custom domain; })
|
||||
];
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"rss-bridge.2li.ch" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8082";
|
||||
proxyWebsockets = true; # needed if you need to use WebSocket
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue