hedgedoc: add github auth

This commit is contained in:
Vivian 2022-05-15 16:08:27 +02:00
parent 53d5aea418
commit f45b571ed3
4 changed files with 20 additions and 13 deletions

View file

@ -37,7 +37,10 @@
};
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ (import ../pkgs) inputs.minecraft-servers.overlay ];
nixpkgs.overlays = [
(import ../pkgs)
inputs.minecraft-servers.overlays.default
];
# Limit the systemd journal to 100 MB of disk or the
# last 7 days of logs, whichever happens first.

View file

@ -58,7 +58,7 @@ in
"hedgedoc"
];
allowEmailRegister = false;
allowAnonymousEdits = true;
allowAnonymousEdits = false;
allowFreeURL = true;
requireFreeURLAuthentication = true;
imageUploadType = "minio";
@ -76,6 +76,10 @@ in
accessKey = "$MINIO_ACCESS_KEY";
secretKey = "$MINIO_SECRET_KEY";
};
github = {
clientID = "$GITHUB_CLIENTID";
clientSecret = "$GITHUB_CLIENTSECRET";
};
};
};
}