Skip to content

Commit

Permalink
nixos/kanidm: set server config and nginx proxy correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Feb 9, 2025
1 parent 05a4dbf commit 7d80d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nixos/mixins/kanidm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ in
domain = lib.mkDefault ("auth." + config.networking.domain);
origin = lib.mkDefault ("https://" + config.services.kanidm.serverSettings.domain);

online_backups = {
online_backup = {
versions = lib.mkDefault 7; # Keep a week's worth of backups
};
};
Expand All @@ -29,7 +29,7 @@ in
(lib.mkIf kanidmCfg.enableServer {
services.nginx.virtualHosts.${kanidmCfg.serverSettings.domain} = {
locations."/" = {
proxyPass = kanidmCfg.serverSettings.bindaddress;
proxyPass = "https://" + kanidmCfg.serverSettings.bindaddress;
};
};
})
Expand Down

0 comments on commit 7d80d22

Please sign in to comment.