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:
parent
5d95802730
commit
5385c1850b
1 changed files with 5 additions and 5 deletions
10
flake.nix
10
flake.nix
|
@ -156,15 +156,15 @@
|
||||||
recommendedTlsSettings = mkDefault true;
|
recommendedTlsSettings = mkDefault true;
|
||||||
|
|
||||||
virtualHosts.${cfg.url} = {
|
virtualHosts.${cfg.url} = {
|
||||||
forceSSL = true;
|
enableACME = true;
|
||||||
useACMEHost = cfg.url;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."www.${cfg.url}" = {
|
virtualHosts."www.${cfg.url}" = {
|
||||||
forceSSL = true;
|
enableACME = true;
|
||||||
useACMEHost = cfg.url;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
return 301 https://${cfg.url}$request_uri;
|
return 301 https://${cfg.url}$request_uri;
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
|
|
||||||
virtualHosts._ = {
|
virtualHosts._ = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = cfg.url;
|
useACMEHost = "*.${cfg.url}";
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
proxy_pass http://localhost:${toString cfg.port}/404;
|
proxy_pass http://localhost:${toString cfg.port}/404;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue