require sign-in for all forgejo access (#26)

Adds REQUIRE_SIGNIN_VIEW to prevent unauthenticated cloning and browsing.
This commit is contained in:
Hari 2026-04-01 16:38:15 -04:00 committed by GitHub
parent 50702bc647
commit 54e766b728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,7 +270,10 @@ in
HTTP_PORT = 19300; HTTP_PORT = 19300;
SSH_DOMAIN = forgejoDomain; SSH_DOMAIN = forgejoDomain;
}; };
service.DISABLE_REGISTRATION = true; service = {
DISABLE_REGISTRATION = true;
REQUIRE_SIGNIN_VIEW = true;
};
session.COOKIE_SECURE = true; session.COOKIE_SECURE = true;
mirror = { mirror = {
DEFAULT_INTERVAL = "1h"; DEFAULT_INTERVAL = "1h";