service: Anubis.
This commit is contained in:
@@ -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
|
||||
|
||||
17
modules/services/anubis.nix
Normal file
17
modules/services/anubis.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user