always force https in caddy
This commit is contained in:
parent
c3fdbf1658
commit
cf735250b4
4 changed files with 10 additions and 17 deletions
|
|
@ -127,7 +127,7 @@ in {
|
|||
|
||||
services.caddy = lib.mkIf (cfg.webserver == "caddy") {
|
||||
enable = mkDefault true;
|
||||
virtualHosts."${if cfg.https then "https" else "http"}://${cfg.hostName}" = {
|
||||
virtualHosts."${cfg.hostName}" = {
|
||||
extraConfig = ''
|
||||
encode zstd gzip
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue