fix(vouch): https redirects

This commit is contained in:
arcnmx 2024-03-23 13:34:28 -07:00
parent 467df9395e
commit 70af593a5f

View file

@ -20,6 +20,7 @@ in {
"http://${host}:${toString cfg.settings.vouch.port}"; "http://${host}:${toString cfg.settings.vouch.port}";
locations = { locations = {
"/" = { "/" = {
ssl.force = true;
extraConfig = '' extraConfig = ''
proxy_redirect default; proxy_redirect default;
set $x_proxy_host $x_forwarded_host; set $x_proxy_host $x_forwarded_host;
@ -56,7 +57,6 @@ in {
"/".proxyPass = mkIf cfg.enable (mkDefault localVouchUrl); "/".proxyPass = mkIf cfg.enable (mkDefault localVouchUrl);
} }
]; ];
ssl.force = true;
}; };
vouch'local = { vouch'local = {
name = { name = {