big forgejo update

updates some settings, disables registration and adds a working forgejo
runner !!!
This commit is contained in:
jacekpoz 2024-05-16 21:38:28 +02:00
parent 9dc55d89a1
commit a27e0f1ab2
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
3 changed files with 70 additions and 18 deletions

View file

@ -1,26 +1,66 @@
{ {
config, config,
pkgs,
... ...
}: { }: {
services.forgejo = { age.secrets.forgejo-runner-token.file = ../../../secrets/forgejo-runner-token.age;
enable = true;
lfs.enable = true;
database.type = "postgres";
dump = {
enable = true;
type = "tar.xz";
};
settings = {
DEFAULT = {
APP_NAME = "fuck it we code";
};
server = rec { services = {
DOMAIN = "git.jacekpoz.pl"; forgejo = {
HTTP_PORT = 1849; enable = true;
PROTOCOL = "http"; lfs.enable = true;
SSH_PORT = 8236; database.type = "postgres";
ROOT_URL = "${PROTOCOL}://${DOMAIN}/"; dump = {
enable = true;
type = "tar.xz";
};
settings = {
DEFAULT = {
APP_NAME = "fuck it we code";
};
server = rec {
DOMAIN = "git.jacekpoz.pl";
HTTP_PORT = 1849;
PROTOCOL = "http";
SSH_PORT = 8236;
ROOT_URL = "${PROTOCOL}://${DOMAIN}/";
};
service = {
DISABLE_REGISTRATION = true;
};
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
};
federation = {
ENABLED = true;
};
};
};
gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances = {
chmura = {
enable = true;
name = config.networking.hostName;
url = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
tokenFile = config.age.secrets.forgejo-runner-token.path;
labels = [
"native:host"
];
settings = {
log.level = "info";
runner = {
file = ".runner";
capacity = 2;
timeout = "3h";
insecure = false;
fetch_timeout = "5s";
fetch_interval = "2s";
};
};
};
}; };
}; };
}; };

View file

@ -0,0 +1,11 @@
age-encryption.org/v1
-> ssh-ed25519 05IAmg 0fT/AGOz2xsryTG07UhKenXN+i37xIbqvPOiVp4V+Hk
UF31C7L+jGnq5JZq0fXraMWQnX1pxOyOlbBdbMeTpRs
-> ssh-ed25519 HC8P8A BxIB5/3ZSATlbN1NQ2AVb+0kSPBDvJ6J/idzB3f9szY
9XaHx1oYpA6ZOhswkfjT+RykxPqYZau8hFpy0uVGNvM
-> ssh-ed25519 sItgaw CMhfAaNrmCn1mHl0pVky6atWLou2ZRdnO28uPqODlG8
PJ7mM77noFf7aphB2M/DYhC/VT9jrF+rC+DUR7S4L2A
-> ssh-ed25519 YQNd1g Gnn7hYsT+H1N1qPHAYlwUcyeB7/fhcuZh+sdOQdbWSI
kSKuS4U+K0wkuv0q+Z73268P9WPO2aBBbcaXVXKQ7Ow
--- NJPyl7Yv6GeED9Cc/a6anrnBIFlEDtq/mT6wHI9DyVg
ööÓ€ÛpR]]ùý­î$A% ± ·Ò$ÃMCœôÞ=¹ÒhE/µÄ<0F>îöÇÛU¤²ì²à€0C_a„/û–‚'Ö{ÌÆ

View file

@ -12,4 +12,5 @@ in {
"discord-autodelete-config.age".publicKeys = niks ++ chmura; "discord-autodelete-config.age".publicKeys = niks ++ chmura;
"eturnal-turn-secret.age".publicKeys = niks ++ chmura; "eturnal-turn-secret.age".publicKeys = niks ++ chmura;
"firefox-syncserver-secrets.age".publicKeys = niks ++ chmura; "firefox-syncserver-secrets.age".publicKeys = niks ++ chmura;
"forgejo-runner-token.age".publicKeys = niks ++ chmura;
} }