From 3710cac335a4300b8b02b43dbe7e26acbe2d4471 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sun, 14 Sep 2025 21:04:22 +0200 Subject: fixed again registrations --- content/theses/self-sufficiency/git-forge.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/theses') diff --git a/content/theses/self-sufficiency/git-forge.md b/content/theses/self-sufficiency/git-forge.md index 638e7e3..23672c3 100644 --- a/content/theses/self-sufficiency/git-forge.md +++ b/content/theses/self-sufficiency/git-forge.md @@ -56,7 +56,7 @@ Open `forgejo/default.nix` in any text editor, and copy the following }; service = { - DISABLE_REGISTRATION = true; + DISABLE_REGISTRATION = false; DEFAULT_KEEP_EMAIL_PRIVATE = true; REQUIRE_SIGNIN_VIEW = false; REGISTER_EMAIL_CONFIRM = false; @@ -112,7 +112,7 @@ Let's break the config file down. - We set the HTTP_PORT to `3040` because it's a non-standard port (the default of `3000` might clash with other services) - We set the HTTP_ADDR to `127.0.0.1` so that the service is not accessible to anyone outside of the machine, *except* via reverse proxy through [`nginx`](/notes/self-sufficiency/web-server) 3) `service` deals with some of the more middleware things; here we have it set to allow registrations, so that we might make our own admin account. After that is done, it should be - `DISABLE_REGISTRATION = false;` + `DISABLE_REGISTRATION = true;` so so that only the admin (you) can create new users. 4) We enable git LFS (Large File Storage) just in case. 5) Finally, we declare an [`nginx`](/notes/self-sufficiency/web-server) virtual host to set up a reverse proxy to point `forge.` to HTTP_PORT 3040, so that you can access `forgejo` via the web. -- cgit v1.2.3