fix: hostname redirect
This commit is contained in:
parent
e0a0f188b1
commit
0318489a9a
1 changed files with 3 additions and 3 deletions
|
|
@ -13,8 +13,8 @@ in
|
||||||
enable = lib.mkEnableOption "Enable Authentik module";
|
enable = lib.mkEnableOption "Enable Authentik module";
|
||||||
|
|
||||||
envFile = lib.mkOption {
|
envFile = lib.mkOption {
|
||||||
default = "";
|
default = null;
|
||||||
type = lib.types.str;
|
type = lib.types.nullOr lib.types.path;
|
||||||
description = ''
|
description = ''
|
||||||
The path to the env file
|
The path to the env file
|
||||||
'';
|
'';
|
||||||
|
|
@ -108,7 +108,7 @@ in
|
||||||
(lib.mkIf cfg.proxy.enable {
|
(lib.mkIf cfg.proxy.enable {
|
||||||
services.caddy = with cfg.proxy; {
|
services.caddy = with cfg.proxy; {
|
||||||
virtualHosts."${subdomain}.${domain}".extraConfig = ''
|
virtualHosts."${subdomain}.${domain}".extraConfig = ''
|
||||||
reverse_proxy http://localhost:9000
|
reverse_proxy http://host:9000
|
||||||
import cloudflare_${domain}
|
import cloudflare_${domain}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue