{ config, lib, pkgs, ... }: let dn = "git.tfcconnection.org"; in with lib; { services.forgejo = { enable = true; settings = { server = { DOMAIN = "${dn}"; ROOT_URL = "https://${dn}"; # PROTOCOL = "https"; HTTP_PORT = 5000; }; }; }; services.nginx.virtualHosts.${dn} = { forceSSL = true; enableACME = true; extraConfig = '' client_max_body_size 512M; ''; locations."/".proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}"; }; # services.gitea-actions-runner = { # package = pkgs.forgejo-actions-runner; # instances.default = { # enable = true; # name = "monolith"; # url = "https://git.tfcconnection.org"; # # Obtaining the path to the runner token file may differ # # tokenFile should be in format TOKEN=, since it's EnvironmentFile for systemd # token = "RP4DUN8EPbonAvl0TzQyco4iA5eXY5QYNc4btuzZ"; # labels = [ # "ubuntu-latest:docker://node:16-bullseye" # ## optionally provide native execution on the host: # "native:host" # ]; # }; # }; }