nixos/tests: fix nginx-pubhtml test

This commit is contained in:
Izorkin 2020-04-20 20:12:31 +03:00
parent 97a0928ccb
commit af6d0095f7

View File

@ -2,6 +2,7 @@ import ./make-test-python.nix {
name = "nginx-pubhtml"; name = "nginx-pubhtml";
machine = { pkgs, ... }: { machine = { pkgs, ... }: {
systemd.services.nginx.serviceConfig.ProtectHome = "read-only";
services.nginx.enable = true; services.nginx.enable = true;
services.nginx.virtualHosts.localhost = { services.nginx.virtualHosts.localhost = {
locations."~ ^/\\~([a-z0-9_]+)(/.*)?$".alias = "/home/$1/public_html$2"; locations."~ ^/\\~([a-z0-9_]+)(/.*)?$".alias = "/home/$1/public_html$2";