update attic port

This commit is contained in:
Osman Faruk Bayram 2025-09-15 13:21:23 +03:00
parent f8d835fddc
commit 11bc022d97

View file

@ -3,6 +3,9 @@
lib,
...
}:
let
atticPort = 7080;
in
{
options = {
myModules.enableAttic = lib.mkOption {
@ -18,7 +21,7 @@
enable = true;
environmentFile = "/persist/attic.env";
settings = {
listen = "[::]:7080";
listen = "[::]:${toString atticPort}";
compression = {
type = "zstd";
level = 9;
@ -31,14 +34,14 @@
# };
};
};
networking.firewall.allowedTCPPorts = [ 5000 ];
networking.firewall.allowedTCPPorts = [ atticPort ];
services.cloudflared.tunnels = {
"fa301a21-b259-4149-b3d0-b1438c7c81f8" = {
default = "http_status:404";
credentialsFile = "/home/osbm/.cloudflared/fa301a21-b259-4149-b3d0-b1438c7c81f8.json";
ingress = {
"cache.osbm.dev" = {
service = "http://localhost:5000";
service = "http://localhost:${toString atticPort}";
};
};
};