Temporarily disable gitlab authentication in hedgedoc

This commit is contained in:
SebastianStork 2025-06-03 10:41:33 +02:00
parent e0eb82bc9f
commit 393be96558

View file

@ -28,19 +28,19 @@ in
sops = { sops = {
secrets = { secrets = {
"hedgedoc/seb-password".owner = user; "hedgedoc/seb-password".owner = user;
"hedgedoc/gitlab-auth-secret".owner = user; # "hedgedoc/gitlab-auth-secret".owner = user;
}; };
templates."hedgedoc/environment" = { # templates."hedgedoc/environment" = {
owner = user; # owner = user;
content = "GITLAB_CLIENTSECRET=${config.sops.placeholder."hedgedoc/gitlab-auth-secret"}"; # content = "GITLAB_CLIENTSECRET=${config.sops.placeholder."hedgedoc/gitlab-auth-secret"}";
}; # };
}; };
services.hedgedoc = { services.hedgedoc = {
enable = true; enable = true;
environmentFile = config.sops.templates."hedgedoc/environment".path; # environmentFile = config.sops.templates."hedgedoc/environment".path;
settings = { settings = {
domain = cfg.domain; domain = cfg.domain;
inherit (cfg) port; inherit (cfg) port;
@ -49,11 +49,11 @@ in
allowEmailRegister = false; allowEmailRegister = false;
defaultPermission = "limited"; defaultPermission = "limited";
sessionSecret = "$SESSION_SECRET"; sessionSecret = "$SESSION_SECRET";
gitlab = { # gitlab = {
baseURL = "https://code.fbi.h-da.de"; # baseURL = "https://code.fbi.h-da.de";
clientID = "dc71d7ec1525ce3b425d7d41d602f67e1a06cef981259605a87841a6be62cc58"; # clientID = "dc71d7ec1525ce3b425d7d41d602f67e1a06cef981259605a87841a6be62cc58";
clientSecret = "$GITLAB_CLIENTSECRET"; # clientSecret = "$GITLAB_CLIENTSECRET";
}; # };
}; };
}; };