From 250e35f6832b91860c1e6928d650b22f7f81abc0 Mon Sep 17 00:00:00 2001 From: Sky Date: Tue, 27 Jan 2026 16:06:00 +0000 Subject: [PATCH] service: Anubis. --- host/macmini.nix | 1 + modules/services/anubis.nix | 17 +++++++++++++++++ modules/services/gitea.nix | 9 +++++++-- modules/services/nignx.nix | 2 +- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 modules/services/anubis.nix diff --git a/host/macmini.nix b/host/macmini.nix index 50e5692..fbef307 100644 --- a/host/macmini.nix +++ b/host/macmini.nix @@ -7,6 +7,7 @@ imports = [ ./hardware-configuration.nix + ../modules/services/anubis.nix ../modules/services/ddns-go.nix ../modules/services/napcat.nix ../modules/services/nignx.nix diff --git a/modules/services/anubis.nix b/modules/services/anubis.nix new file mode 100644 index 0000000..61c98ae --- /dev/null +++ b/modules/services/anubis.nix @@ -0,0 +1,17 @@ +{ ... }: +{ + services.anubis = { + instances = { + gitea = { + enable = true; + settings = { + BIND = "localhost:3001"; + BIND_NETWORK = "tcp"; + TARGET = "http://localhost:3000/"; + WEBMASTER_EMAIL = "i@colorsky.fun"; + SERVE_ROBOTS_TXT = true; + }; + }; + }; + }; +} diff --git a/modules/services/gitea.nix b/modules/services/gitea.nix index d500892..1b0857a 100644 --- a/modules/services/gitea.nix +++ b/modules/services/gitea.nix @@ -13,7 +13,7 @@ catppuccin.gitea = { enable = true; - accent = "sky"; + accent = "pink"; flavor = "mocha"; }; @@ -30,12 +30,17 @@ settings = { "DEFAULT" = { - "APP_NAME" = "ColorSkyFun's Gitea"; + APP_NAME = "ColorSkyFun's Gitea"; }; server = { + HTTP_ADDR = "localhost"; ROOT_URL = "https://git.colorsky.fun:8443"; DOMAIN = "git.colorsky.fun"; }; + service = { + DEFAULT_ALLOW_CREATE_ORGANIZATION = false; + NO_REPLY_ADDRESS = "noreply@colorsky.fun"; + }; mailer = { ENABLED = true; PROTOCOL = "smtp+starttls"; diff --git a/modules/services/nignx.nix b/modules/services/nignx.nix index b404615..e9bd869 100644 --- a/modules/services/nignx.nix +++ b/modules/services/nignx.nix @@ -8,7 +8,7 @@ virtualHosts."git.colorsky.fun" = { forceSSL = true; useACMEHost = "colorsky.fun"; - locations."/".proxyPass = "http://localhost:3000"; + locations."/".proxyPass = "http://localhost:3001"; extraConfig = '' listen [::]:8443 ssl;