nginx proxy module

This commit is contained in:
2025-09-27 18:06:35 -06:00
parent 99574c9b66
commit ab845af157
25 changed files with 276 additions and 240 deletions

View File

@@ -7,22 +7,19 @@ in
options.my.servers.readeck = setup.mkOptions "readeck" "laters" 9546;
config = {
sops.secrets.readeck.sopsFile = ../../secrets/env.yaml;
services = {
readeck = {
inherit (cfg) enable;
environmentFile = config.sops.secrets.readeck.path;
settings = {
main = {
log_level = "warn";
data_directory = "/var/lib/readeck";
};
server = {
port = cfg.port;
host = cfg.ip;
};
services.readeck = {
inherit (cfg) enable;
environmentFile = config.sops.secrets.readeck.path;
settings = {
main = {
log_level = "warn";
data_directory = "/var/lib/readeck";
};
server = {
port = cfg.port;
host = cfg.ip;
};
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);
};
};
}