services: gitea add secrets

This commit is contained in:
Kabbone 2023-01-03 16:52:23 +01:00
parent 4c77497369
commit 1a41b8ceb5
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
5 changed files with 102 additions and 25 deletions

View File

@ -7,21 +7,23 @@
{
services.gitea = {
enable = true;
#dump.enable = true;
rootUrl = "https://git.kabtop.de"
dump.enable = true;
rootUrl = "https://git2.kabtop.de"
lfs.enable = true;
httpAdress = "localhost";
dump.type = "tar.xz";
domain = "git.kabtop.de";
domain = "git2.kabtop.de";
database.type = "postgres";
database.user = "gitea";
#database.password = "secret123";
database.name = "giteadb"
database.passwordFile = config.age.secrets."services/gitea/databasePassword".path;
appName = "Kabtop Git";
# mailerPasswordFile = config.age.secrets."services/gitea/mailerPassword".path;
settings = {
RUN_MODE = "prod";
server = {
START_SSH_SERVER = true;
SSH_PORT = 2222;
SSH_SERVER_CIPHERS = "";
SSH_SERVER_KEY_EXCHANGES = "";
SSH_SERVER_MACS = "";
@ -33,10 +35,10 @@
PASSWORD_CHECK_PWN = true;
PASSWORD_HASH_ALGO = "argon2";
};
oauth2 = {
ENABLE = true;
#JWT_SECRET = "secret123";
};
# oauth2 = {
# ENABLE = true;
# #JWT_SECRET = "secret123";
# };
repository = {
MAX_CREATION_LIMIT = 100;
};
@ -44,29 +46,30 @@
SHOW_USER_EMAIL = false;
DEFAULT_THEME = "arc-green";
};
openid = {
ENABLE_OPENID_SIGNIN = true;
WHITELISTED_URIS = "https://auth.kabtop.de";
};
oauth2_client = {
ENABLE_AUTO_REGISTRATION = true;
};
mailer = {
ENABLED = true;
SUBJECT_PREFIX = "Kabtop Gitea";
HOST = "in-v3.mailjet.com:587";
PROTOCOL = "";
FROM = '"Kabtop Gitea" <postmaster@kabtop.de>';
USER = "secrest123";
PASSWD = "secret123";
MAILER_TYPE = "smtp";
};
# openid = {
# ENABLE_OPENID_SIGNIN = true;
# WHITELISTED_URIS = "https://auth.kabtop.de";
# };
# oauth2_client = {
# ENABLE_AUTO_REGISTRATION = true;
# };
time = {
DEFAULT_UI_LOCATION = "Europe/Berlin"
};
other = {
SHOW_FOOTER_VERSION = false;
}
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
};
# age.secrets."services/gitea/mailerPassword" = {
# file = ../../../secrets/services/gitea/mailerPassword.age;
# owner = "gitea";
# };
age.secrets."services/gitea/databasePassword" = {
file = ../../../secrets/services/gitea/databasePassword.age;
owner = "gitea";
};
}

View File

@ -42,4 +42,7 @@ in
"services/matrix/signal-registration.age".publicKeys = servers ++ users;
"services/nextcloud/adminpassFile.age".publicKeys = servers ++ users;
"services/nextcloud/dbpassFile.age".publicKeys = servers ++ users;
"services/gitea/databasePassword.age".publicKeys = servers ++ users;
"services/gitea/mailerPassword.age".publicKeys = servers ++ users;
"services/gitea/extraConfig.age".publicKeys = servers ++ users;
}

View File

@ -0,0 +1,23 @@
age-encryption.org/v1
-> ssh-ed25519 neExcQ dCh+HRLD8hV5vIZ5iZ0gnSyiSdJunN/MsDXdClqiznI
fi+QK8cL5l7RpJOWvgVAA0h98EueVfNCX5tMIXh0Pys
-> ssh-rsa VtjGpQ
ay+xZqKp9c6IfdhYJdB2Y4DsK+uHeUErU0KNSAtazF1i4Aic7VmXJCYQ65gqFpSZ
n09Xewru/ciOmtPN9E2I01LlG26qwczrIjk72jNqAaRPnfL6RuOUk+HTGuitobOT
idUFUKxJl5UPsXNpGFW3ETJ4eRcujPmUfqxVGFY/ssb7qI/9BTcuySOWL61Ytl7P
HDJdTdrNZJKrBJfuzRDMzBAj32Sni0T92Ng5bzQVNF8eCNOhhIy9a+SigwhMT1qp
tbZqURWIGw9n1HGwQ7raalkwr/CvdtINd7vY3pTKwK1pIwDwiflgQVJ7MTS4nVmL
eiAKbfZG11HGSwEmyG/zl5RZvA9pzWbYqFgkLf6M75KQlMxjiwli25Da5ahmrIy+
J8BzJVXcAKUl8tRgRgg7rbWjRL05OcaKNU6XCotgd0g5HSRA6nHY8URoCmRHWguL
wxSAjBxMJ/NciFhlcwqKgixWGjn5J+8FzX2AYPTSnoSJRYwTo2WqpVmg7us2frDe
iB9t1r1mFyWqzl/3mlM0SmEKs/NI0O5IfxYsTjMjLDLlgjfkx3gq0CKc1oRSBLR+
vzhv59EGMRAI1CZg9xteuO3tkUw5iVkPA35784ALdfoBeToO96lFttpfWEbbILP5
iv9HzHNwDlEMgF880pMPnAGWPag8Yv9ANR6bio49k8w
-> piv-p256 grR75w Ay6xGroo9Wi6QLICfryEz8CWKO7guC7vmrt407bzUzcb
2ENrhkE4T1TrSCjDToeI/uS58MZnafI8glefwChpSiU
-> piv-p256 RQguQQ AuWNJAzo1Gj4bSfybbjXrqq6TT3gwAY6KV/XhDWTtnWS
H3qeNrIePWNjpbLpkMh9ScWOwkwyjWTR+OYAboQzZ34
-> q]_G5R-grease
hQ+Pk+0q
--- u2RASGK+aYwMNV4UkGyBprChnbBjkUwEdJTnCFxxmN4
<EFBFBD>+傱?遞 罉*麤眥3邴撳尤}藝蜻蓾拂,'cc<63>]"棙?麔l

View File

@ -0,0 +1,24 @@
age-encryption.org/v1
-> ssh-ed25519 neExcQ ZCLiNDBNdcv6P73bROlcWwvpalGPkUBeoRokt0MYBRM
UU/zMvEr2HpP3E7rClTFNmZdA6r5umB6/t2FnKyoajI
-> ssh-rsa VtjGpQ
C3mwshkQwtNXd0+k6wK5grpZmeSt22jy0kNn9oHUmIA72cNvw+Xmmr8DC5035LcY
mUwMn0Kf3RRXfWUHUK58cfNIARwZ1+W8EoC53Su/6MqpVixx1Pu2cWpw+tI+Hkxs
fituCOok1o/l82eo4xCaINxgqebGiRZtUypdmjJ4zUSZ1IVhnBaK6/X+1vduc18e
Q9rh3GstWW9BA3wWNw4G2v4GKryApq/a2BgjC8p8JkJUjXHYJoZp8ZyEbuhZtUua
VP1fiyYwIe6Dx1CEJobEd07GImKaq9XTbV/BWpeA4tlX19mcYx/KUz655pr+kS0N
C5LkmXEeugsRWd5Cc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