disallow local login on forge
Some checks failed
/ lint (push) Failing after 37s

This commit is contained in:
Jana Dönszelmann 2026-01-03 11:31:11 +01:00
parent 508c3a20bd
commit 5f9ef795c0
No known key found for this signature in database

View file

@ -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;