From 8d2815f7a323b2033cfd54f478c95101f2d84e6d Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 8 Oct 2023 10:13:09 +0900 Subject: [PATCH] Test --- nixos/hosts/nixos-rpi4-03/temp.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/nixos-rpi4-03/temp.nix b/nixos/hosts/nixos-rpi4-03/temp.nix index 9cbb006a..0c9b86da 100644 --- a/nixos/hosts/nixos-rpi4-03/temp.nix +++ b/nixos/hosts/nixos-rpi4-03/temp.nix @@ -3,10 +3,16 @@ services.nginx = { enable = true; - virtualHosts = { - "*" = { - root = "/var/www/test"; - }; + httpConfig = '' + index index.html; + server { + listen 80 default_server; + server_name _; + access_log logs/test.access.log main; + server_name_in_redirect off; + root /var/www/test/; + } + ''; }; }; } \ No newline at end of file