service: Anubis.

This commit is contained in:
Sky
2026-01-27 16:06:00 +00:00
parent b9a3ebef6c
commit 250e35f683
4 changed files with 26 additions and 3 deletions

View File

@@ -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

View File

@@ -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;
};
};
};
};
}

View File

@@ -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";

View File

@@ -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;