diff options
| author | Max Audron <audron@cocaine.farm> | 2024-03-02 11:44:39 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2024-03-02 11:44:39 +0100 |
| commit | 5e5461b06ed37417879e738872621f5ace7d909e (patch) | |
| tree | 44558f30087931aa145bb839bd38bc589b2bf190 | |
| parent | add gitea (diff) | |
setup gitea oidc
| -rw-r--r-- | modules/git/default.nix | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/modules/git/default.nix b/modules/git/default.nix index 08b2672..d5cae6a 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -15,11 +15,24 @@ createDatabase = true; }; - settings.server = { - DOMAIN = "git.vapor.systems"; - ROOT_URL = "https://git.vapor.systems"; - PROTOCOL = "http+unix"; - HTTP_ADDR = "/run/gitea/http.sock"; + settings = { + server = { + DOMAIN = "git.vapor.systems"; + ROOT_URL = "https://git.vapor.systems"; + PROTOCOL = "http+unix"; + HTTP_ADDR = "/run/gitea/http.sock"; + }; + + oauth2_client = { + REGISTER_EMAIL_CONFIRM = false; + OPENID_CONNECT_SCOPES = "email profile"; + ENABLE_AUTO_REGISTRATION = true; + ACCOUNT_LINKING = "auto"; + }; + + service = { + DISABLE_REGISTRATION = true; + }; }; }; |
