Changed caddy from configFile to virtualHosts
This commit is contained in:
parent
25bf425c78
commit
9e800c9882
1 changed files with 11 additions and 13 deletions
|
@ -3,18 +3,16 @@
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = pkgs.writeText "Caddyfile" ''
|
virtualHosts = {
|
||||||
https://git.huwe.mooo.com {
|
"https://git.huwe.mooo.com" = {
|
||||||
reverse_proxy localhost:3000
|
extraConfig = "reverse_proxy localhost:3000";
|
||||||
}
|
};
|
||||||
|
"https://files.huwe.mooo.com" = {
|
||||||
https://files.huwe.mooo.com {
|
extraConfig = "reverse_proxy localhost:444";
|
||||||
reverse_proxy localhost:444
|
};
|
||||||
}
|
"https://cal.huwe.mooo.com" = {
|
||||||
|
extraConfig = "reverse_proxy localhost:5232";
|
||||||
https://cal.huwe.mooo.com {
|
};
|
||||||
reverse_proxy localhost:5232
|
};
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue