working docs

This commit is contained in:
Henry Hiles 2025-07-25 23:52:47 -04:00
commit ce8ff03be7
No known key found for this signature in database
8 changed files with 38 additions and 60 deletions

View file

@ -51,7 +51,7 @@ in {
gmessages = {
host = "127.0.0.5";
serviceConfig.EnvironmentFile = config.age.secrets."gmessages.age".path;
package = inputs.nixpkgs-goolm.legacyPackages.${pkgs.system}.mautrix-gmessages;
package = pkgs.mautrix-gmessages;
};
};

View file

@ -19,11 +19,13 @@ in {
inherit s3Url domain;
settings = {
OIDC_CREATE_USER = true;
OIDC_OP_AUTHORIZATION_ENDPOINT = "https://federated.nexus/login";
OIDC_OP_TOKEN_ENDPOINT = "http://${authDomain}/token";
OIDC_OP_USER_ENDPOINT = "http://${authDomain}/userinfo";
OIDC_RP_SIGN_ALGO = "HS256";
LOGIN_REDIRECT_URL = "http://${domain}";
OIDC_USERINFO_FULLNAME_FIELDS = ''["name"]'';
OIDC_USERINFO_SHORTNAME_FIELD = "name";
@ -68,12 +70,7 @@ in {
reverse_proxy /admin/* unix/${socket}
reverse_proxy /collaboration/ws/* http://localhost:${toString cfg.collaborationServer.port} {
transport http {
versions h2c 1.1
}
}
reverse_proxy /collaboration/ws/* http://localhost:${toString cfg.collaborationServer.port}
reverse_proxy /collaboration/api/* http://localhost:${toString cfg.collaborationServer.port}
rewrite /media-auth /api/v1.0/documents/media-auth/

View file

@ -106,7 +106,7 @@
};
caddy = {
environmentFile = config.age.secrets."oidcJwtSecretEnv.age".path;
environmentFile = config.age.secrets."base64JwtSecret.age".path;
virtualHosts."${domain}".extraConfig = let
auth = "https://auth.federated.nexus";
in ''