pruflas: fixup webserver

This commit is contained in:
Tim Schubert 2022-10-08 13:01:42 +02:00
parent a7a49bff68
commit ff50c0d632
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

View file

@ -38,6 +38,7 @@ in
]; ];
services.nginx = { services.nginx = {
enable = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
@ -50,8 +51,10 @@ in
enableACME = false; enableACME = false;
forceSSL = false; forceSSL = false;
root = "/var/www/pruflas.uwu"; root = "/var/www/pruflas.uwu";
index = "index.html"; locations."/" = {
locations."/".tryFiles = "$uri $uri/ = 404"; tryFiles = "$uri $uri/ = 404";
index = "index.html";
};
}; };
}; };
@ -109,7 +112,7 @@ in
allowPing = true; allowPing = true;
allowedTCPPorts = [ allowedTCPPorts = [
22 # SSH 22 # SSH
80 80 # HTTP
443 # HTTPS 443 # HTTPS
3000 # Hydra 3000 # Hydra
]; ];