1
0
Fork 0

weewx: Remove from CF

This commit is contained in:
Daniel Kempkens 2023-03-06 22:20:26 +01:00
parent ee065a6fe9
commit 3538d28e87
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 26 additions and 0 deletions

View file

@ -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