lkjlalaksjd

This commit is contained in:
Peder Bergebakken Sundt 2024-08-16 21:05:52 +02:00
parent c46d2a3f36
commit 5a982e5e24
2 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,14 @@ in
services.nginx.recommendedProxySettings = true; services.nginx.recommendedProxySettings = true;
services.nginx.recommendedTlsSettings = true; services.nginx.recommendedTlsSettings = true;
# nginx return 444 for all nonexistent virtualhosts
services.nginx.virtualHosts."_" = {
addSSL = true;
sslCertificate = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.cert.pem";
sslCertificateKey = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.key.pem";
extraConfig = "return 444;";
};
/** / /** /
services.nginx.virtualHosts."" = { services.nginx.virtualHosts."" = {
default = true; default = true;

View File

@ -36,7 +36,7 @@
if test -d "$src"; then if test -d "$src"; then
(set -x (set -x
rm -v "$dst" rm -v "$dst"
cp -r --dereference --one-file-system "$src/" "$dst/" ) cp -r --dereference --one-file-system "$src/" "$dst/"
chmod -R +rw "$dst" chmod -R +rw "$dst"
) )
elif test -f "$src"; then elif test -f "$src"; then