nixos/tests: fix nginx-pubhtml test

gstqt5
Izorkin 2020-04-20 20:12:31 +03:00
parent 97a0928ccb
commit af6d0095f7
1 changed files with 1 additions and 0 deletions

View File

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