lkjlalaksjd
This commit is contained in:
parent
c46d2a3f36
commit
5a982e5e24
@ -36,6 +36,14 @@ in
|
||||
services.nginx.recommendedProxySettings = 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."" = {
|
||||
default = true;
|
||||
|
@ -36,7 +36,7 @@
|
||||
if test -d "$src"; then
|
||||
(set -x
|
||||
rm -v "$dst"
|
||||
cp -r --dereference --one-file-system "$src/" "$dst/" )
|
||||
cp -r --dereference --one-file-system "$src/" "$dst/"
|
||||
chmod -R +rw "$dst"
|
||||
)
|
||||
elif test -f "$src"; then
|
||||
|
Loading…
Reference in New Issue
Block a user