nixos/tests: fix nginx-pubhtml test
This commit is contained in:
parent
97a0928ccb
commit
af6d0095f7
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user