1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Use proper acme hosts

This commit is contained in:
RGBCube 2024-01-11 18:24:52 +03:00
parent 5d95802730
commit 5385c1850b
No known key found for this signature in database

View file

@ -156,15 +156,15 @@
recommendedTlsSettings = mkDefault true;
virtualHosts.${cfg.url} = {
enableACME = true;
forceSSL = true;
useACMEHost = cfg.url;
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
};
virtualHosts."www.${cfg.url}" = {
enableACME = true;
forceSSL = true;
useACMEHost = cfg.url;
locations."/".extraConfig = ''
return 301 https://${cfg.url}$request_uri;
@ -173,7 +173,7 @@
virtualHosts._ = {
forceSSL = true;
useACMEHost = cfg.url;
useACMEHost = "*.${cfg.url}";
locations."/".extraConfig = ''
proxy_pass http://localhost:${toString cfg.port}/404;