try to improve code

This commit is contained in:
Leon Vatthauer 2024-06-17 16:47:54 +02:00
parent 70d29ad570
commit c1a4c0b7bd
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8

View file

@ -8,11 +8,14 @@
recommendedTlsSettings = true; recommendedTlsSettings = true;
}; };
services.nginx.virtualHosts."git.vatthauer.xyz" = { services.nginx.virtualHosts = let tld = "vatthauer.xyz"; in
enableACME = true; {
forceSSL = true; "git.${tld}" = {
locations."/" = { enableACME = true;
proxyPass = "http://localhost:3001/"; forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3001/";
};
}; };
}; };