weewx: Remove from CF
This commit is contained in:
parent
ee065a6fe9
commit
3538d28e87
2 changed files with 26 additions and 0 deletions
|
@ -41,4 +41,30 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."${secret.container.webserver.hostname}" = {
|
||||||
|
http3 = true;
|
||||||
|
|
||||||
|
root = "/etc/container-webserver/weewx/html/wdc";
|
||||||
|
index = "index.html";
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "kempkens.io";
|
||||||
|
|
||||||
|
location."~* \.html$".extraConfig = ''
|
||||||
|
expires modified 120s;
|
||||||
|
'';
|
||||||
|
|
||||||
|
location."~* \.(js|css)$".extraConfig = ''
|
||||||
|
expires 1h;
|
||||||
|
'';
|
||||||
|
|
||||||
|
locations."~ ^/dwd/(icons|warn_icons)/" = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:8000";
|
||||||
|
};
|
||||||
|
|
||||||
|
location."~ ^/dwd/[\w]+\.(gif|png)".extraConfig = ''
|
||||||
|
expires modified 1h;
|
||||||
|
'';
|
||||||
|
};
|
||||||
} // custom-config
|
} // custom-config
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue