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