add gitea config
This commit is contained in:
parent
111c4d065d
commit
ee790d39c2
26
profiles/servers/gitea.nix
Normal file
26
profiles/servers/gitea.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
secrets.gitea = {
|
||||
owner = "gitea";
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "AtaraxiaDev Gitea Instance";
|
||||
cookieSecure = true;
|
||||
database = {
|
||||
type = "postgres";
|
||||
passwordFile = config.secrets.gitea.decrypted;
|
||||
};
|
||||
disableRegistration = true;
|
||||
domain = "code.ataraxiadev.com";
|
||||
httpPort = 6000;
|
||||
lfs.enable = true;
|
||||
rootUrl = "https://code.ataraxiadev.com";
|
||||
settings = {
|
||||
server = {
|
||||
SSH_DOMAIN = "gitea.ataraxiadev.com";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -104,11 +104,16 @@
|
||||
'';
|
||||
locations."/mautrix-telegram/" = {
|
||||
proxyPass = "http://localhost:29317";
|
||||
};
|
||||
};
|
||||
locations."/_matrix" = {
|
||||
proxyPass = "http://localhost:13748";
|
||||
};
|
||||
} // default;
|
||||
"code.ataraxiadev.com" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:6000";
|
||||
};
|
||||
} // default;
|
||||
};
|
||||
};
|
||||
}
|
@ -10,6 +10,7 @@
|
||||
kitty
|
||||
|
||||
coturn
|
||||
gitea
|
||||
mailserver
|
||||
matrix-synapse
|
||||
nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user