lkjlalaksjd
This commit is contained in:
parent
c46d2a3f36
commit
5a982e5e24
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue