try to improve code
This commit is contained in:
parent
70d29ad570
commit
c1a4c0b7bd
1 changed files with 8 additions and 5 deletions
|
@ -8,11 +8,14 @@
|
|||
recommendedTlsSettings = true;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."git.vatthauer.xyz" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3001/";
|
||||
services.nginx.virtualHosts = let tld = "vatthauer.xyz"; in
|
||||
{
|
||||
"git.${tld}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3001/";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue