gerd.authelia: add example forgejo configuration

This commit is contained in:
eyjhb 2024-08-09 22:11:21 +02:00
parent a7508ae8af
commit 115ca9f4f0
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -51,6 +51,29 @@ in {
};
};
# example configuration for forgejo. Should live in forgejo.nix if needed
# services.authelia.instances.main.settings.identity_providers.oidc.clients = [{
# id = "forgejo";
# description = "Forgejo";
# # authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986
# secret = "$pbkdf2-sha512$310000$cOGtLwMHyfugAJCIiUUjfQ$ao7zC8QB1m8aTGNf1dxYbRAPivZ0G1eaJ4bNFVfJiTFZX06U5baBjT0emvoaeFHXMFbYHzorb2/8vxnY/D0b5Q";
# public = false;
# authorization_policy = "one_factor";
# redirect_uris = [ "https://git.fricloud.dk/user/oauth2/authelia/callback" ];
# scopes = [
# "openid"
# "email"
# "profile"
# ];
# userinfo_signing_algorithm = "none";
# # userinfo_signed_response_alg = "none";
# # token_endpoint_auth_method = "client_secret_basic";
# }];
services.nginx.virtualHosts."auth.fricloud.dk" = {
forceSSL = true;
enableACME = true;