Oliver Davies
7cacaa3e26
I need to investigate why I can't push changes to it, as "git push" commands are hanging. I've added forgejo as an authorised SSH user and tried various Forgejo and firewall configurations, but it isn't working.
29 lines
574 B
Nix
29 lines
574 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services = {
|
|
forgejo = {
|
|
enable = false;
|
|
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "code.oliverdavies.uk";
|
|
HTTP_PORT = 2223;
|
|
};
|
|
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
caddy.virtualHosts."${config.services.forgejo.settings.server.DOMAIN}" = {
|
|
useACMEHost = "oliverdavies.uk";
|
|
|
|
extraConfig = "reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
|
|
};
|
|
|
|
openssh.settings.AllowUsers = [ "forgejo" ];
|
|
};
|
|
}
|