feat: Added stuff
This commit is contained in:
@@ -1,21 +1,40 @@
|
||||
{...}: {
|
||||
{config, ...}: {
|
||||
virtualisation.docker.enable = true;
|
||||
sops = {
|
||||
secrets."gitea/token" = {};
|
||||
};
|
||||
services = {
|
||||
gitea = {
|
||||
enable = true;
|
||||
settings = {
|
||||
service = {
|
||||
# DISABLE_REGISTRATION = false;
|
||||
ENABLE_REVERSE_PROXY_AUTHENTICATION = true;
|
||||
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true;
|
||||
};
|
||||
mailer = {
|
||||
ENABLED = true;
|
||||
PROTOCOL = "sendmail";
|
||||
# SENDMAIL_PATH = "sendmail";
|
||||
};
|
||||
security = {
|
||||
REVERSE_PROXY_AUTHENTICATION_USER = "REMOTE-USER";
|
||||
};
|
||||
server = {
|
||||
ROOT_URL = "https://git.darksailor.dev";
|
||||
DOMAIN = "git.darksailor.dev";
|
||||
};
|
||||
};
|
||||
};
|
||||
gitea-actions-runner = {
|
||||
instances = {
|
||||
mirai = {
|
||||
name = "mirai";
|
||||
enable = true;
|
||||
url = "https://git.darksailor.dev";
|
||||
labels = [
|
||||
"ubuntu-latest:docker://node:18-bullseye"
|
||||
];
|
||||
tokenFile = config.sops.secrets."gitea/token".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
caddy = {
|
||||
|
||||
Reference in New Issue
Block a user