feat(thor): add forgejo, code repo."

This commit is contained in:
CronyAkatsuki 2025-05-10 08:24:19 +02:00
parent ee550f58b7
commit 850f15885a
5 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{config, ...}: {
services.forgejo = {
enable = true;
settings = {
session = {
COOKIE_SECURE = true;
};
server = {
ROOT_URL = "https://git.cronyakatsuki.xyz";
HTTP_ADDR = "127.0.0.1";
};
};
database = {
passwordFile = "${config.age.secrets.forgejo-db.path}";
};
};
services.traefik.dynamicConfigOptions.http = {
services.forgejo.loadBalancer.servers = [
{
url = "http://localhost:3000";
}
];
routers.forgejo = {
rule = "Host(`git.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "forgejo";
entrypoints = "websecure";
};
};
}