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,13 +8,16 @@
recommendedTlsSettings = true; recommendedTlsSettings = true;
}; };
services.nginx.virtualHosts."git.vatthauer.xyz" = { services.nginx.virtualHosts = let tld = "vatthauer.xyz"; in
{
"git.${tld}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:3001/"; proxyPass = "http://localhost:3001/";
}; };
}; };
};
services.nginx.virtualHosts."vaultwarden.vatthauer.xyz" = { services.nginx.virtualHosts."vaultwarden.vatthauer.xyz" = {
enableACME = true; enableACME = true;