pruflas: fixup webserver
This commit is contained in:
parent
a7a49bff68
commit
ff50c0d632
1 changed files with 6 additions and 3 deletions
|
@ -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";
|
||||||
|
locations."/" = {
|
||||||
|
tryFiles = "$uri $uri/ = 404";
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
locations."/".tryFiles = "$uri $uri/ = 404";
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue