service: Anubis.
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
../modules/services/anubis.nix
|
||||||
../modules/services/ddns-go.nix
|
../modules/services/ddns-go.nix
|
||||||
../modules/services/napcat.nix
|
../modules/services/napcat.nix
|
||||||
../modules/services/nignx.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 = {
|
catppuccin.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
accent = "sky";
|
accent = "pink";
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -30,12 +30,17 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"DEFAULT" = {
|
"DEFAULT" = {
|
||||||
"APP_NAME" = "ColorSkyFun's Gitea";
|
APP_NAME = "ColorSkyFun's Gitea";
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
|
HTTP_ADDR = "localhost";
|
||||||
ROOT_URL = "https://git.colorsky.fun:8443";
|
ROOT_URL = "https://git.colorsky.fun:8443";
|
||||||
DOMAIN = "git.colorsky.fun";
|
DOMAIN = "git.colorsky.fun";
|
||||||
};
|
};
|
||||||
|
service = {
|
||||||
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = false;
|
||||||
|
NO_REPLY_ADDRESS = "noreply@colorsky.fun";
|
||||||
|
};
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
PROTOCOL = "smtp+starttls";
|
PROTOCOL = "smtp+starttls";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
virtualHosts."git.colorsky.fun" = {
|
virtualHosts."git.colorsky.fun" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "colorsky.fun";
|
useACMEHost = "colorsky.fun";
|
||||||
locations."/".proxyPass = "http://localhost:3000";
|
locations."/".proxyPass = "http://localhost:3001";
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
listen [::]:8443 ssl;
|
listen [::]:8443 ssl;
|
||||||
|
|||||||
Reference in New Issue
Block a user