big forgejo update
updates some settings, disables registration and adds a working forgejo runner !!!
This commit is contained in:
parent
9dc55d89a1
commit
a27e0f1ab2
3 changed files with 70 additions and 18 deletions
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.forgejo = {
|
||||
age.secrets.forgejo-runner-token.file = ../../../secrets/forgejo-runner-token.age;
|
||||
|
||||
services = {
|
||||
forgejo = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
database.type = "postgres";
|
||||
|
@ -22,6 +26,42 @@
|
|||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
11
secrets/forgejo-runner-token.age
Normal file
11
secrets/forgejo-runner-token.age
Normal 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„/û–‚'Ö{ÌÆ
|
|
@ -12,4 +12,5 @@ in {
|
|||
"discord-autodelete-config.age".publicKeys = niks ++ chmura;
|
||||
"eturnal-turn-secret.age".publicKeys = niks ++ chmura;
|
||||
"firefox-syncserver-secrets.age".publicKeys = niks ++ chmura;
|
||||
"forgejo-runner-token.age".publicKeys = niks ++ chmura;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue