diff --git a/fili/services/forgejo.nix b/fili/services/forgejo.nix index de08a91..d648d8d 100644 --- a/fili/services/forgejo.nix +++ b/fili/services/forgejo.nix @@ -38,7 +38,12 @@ in extraConfig = '' client_max_body_size 512M; ''; - locations."/".proxyPass = "http://[::1]:13121"; + locations."/" = { + proxyPass = "http://[::1]:13121"; + extraConfig = '' + rewrite ^/user/login.*$ /user/oauth2/pocketid last; + ''; + }; }; services.forgejo = { @@ -86,6 +91,7 @@ in }; repository = { DEFAULT_PRIVATE = "private"; + DISABLE_HTTP_GIT = true; }; mailer = { ENABLED = true;