runs on prod now :)

This commit is contained in:
KoenDR06 2026-02-10 01:04:47 +01:00
parent d7812f37c3
commit 4c66c514a3
5 changed files with 83 additions and 87 deletions

View file

@ -57,8 +57,8 @@ in {
containers.forgejoRunner = {
autoStart = true;
privateNetwork = true;
hostAddress = "172.16.0.2";
localAddress = "192.168.100.2";
hostAddress = "172.168.100.2";
localAddress = "192.168.100.102";
bindMounts = {
"/var/lib/secrets" = {
@ -91,7 +91,7 @@ in {
systemd.services.startup = {
script = ''
cd ${config.users.users.runner.home}
${pkgs.forgejo-runner}/bin/forgejo-runner create-runner-file --instance http://192.168.100.3:3000 --secret $(cat /var/lib/secrets/secret) --name runner
${pkgs.forgejo-runner}/bin/forgejo-runner create-runner-file --instance ${cfg.url} --secret $(cat /var/lib/secrets/secret) --name runner
sleep 10
${pkgs.forgejo-runner}/bin/forgejo-runner daemon --config ${configFile}
'';
@ -106,8 +106,8 @@ in {
containers.forgejo = {
autoStart = true;
privateNetwork = true;
hostAddress = "172.16.0.3";
localAddress = "192.168.100.3";
hostAddress = "192.168.100.3";
localAddress = "192.168.100.103";
bindMounts = {
"/var/lib/forgejo" = {
@ -139,7 +139,7 @@ in {
ROOT_URL = cfg.url;
};
session = {
COOKIE_SECURE = false; # TODO Set to true
COOKIE_SECURE = true;
};
service = {
DISABLE_REGISTRATION = true;