diff options
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Bild/ShellHook.sh | 2 | ||||
-rw-r--r-- | Biz/Cloud/Web.nix | 8 | ||||
-rw-r--r-- | Biz/Users.nix | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh index 99cfe7d..f2c2470 100644 --- a/Biz/Bild/ShellHook.sh +++ b/Biz/Bild/ShellHook.sh @@ -94,7 +94,7 @@ function run-sentry() { https://devalloc.io https://simatime.com https://tv.simatime.com - # https://bsima.me + https://bsima.me # https://herocomics.app ) for url in ${urls[@]} diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index c364c22..74fc27e 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -12,8 +12,10 @@ in recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + statusPage = true; - group = "users"; + user = "nginx"; + group = "www-data"; virtualHosts = { ${rootDomain} = { @@ -21,7 +23,7 @@ in # serve /~$USER paths locations."~ ^/~(.+?)(/.*)?$" = { - alias = "/home/$1/public_html$2"; + alias = "/www/$1/public$2"; index = "index.html index.htm"; extraConfig = '' autoindex on; @@ -33,7 +35,7 @@ in "bsima.me" = { locations."/" = { - root = "/home/ben/public_html/"; + root = "/www/ben/public"; index = "index.html index.htm"; extraConfig = '' autoindex on; diff --git a/Biz/Users.nix b/Biz/Users.nix index e0e2d94..879e576 100644 --- a/Biz/Users.nix +++ b/Biz/Users.nix @@ -7,6 +7,10 @@ let (lib.filter (s: s != "")) ]; in { + users.groups = { + # group for publishing web data + "www-data" = {}; + }; users.motd = '' welcome to the simatime network! |