From 3ed2e4f417149b745358e9f1f3413a82fe4afb21 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sat, 1 Jun 2024 19:26:50 +0200 Subject: [PATCH 1/3] load env in systemd --- install.ztnet/bash/ztnet.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.ztnet/bash/ztnet.sh b/install.ztnet/bash/ztnet.sh index 907d2355..07ac1a38 100755 --- a/install.ztnet/bash/ztnet.sh +++ b/install.ztnet/bash/ztnet.sh @@ -1038,6 +1038,7 @@ Description=ZTnet Service After=network.target [Service] +EnvironmentFile="$TARGET_DIR/.env" ExecStart=/usr/bin/node "$TARGET_DIR/server.js" Restart=always From aa5dfee8a6ee9cd165b21da220ba40f6b564f78c Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sat, 1 Jun 2024 19:41:24 +0200 Subject: [PATCH 2/3] update docs --- docs/docs/Installation/options.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/Installation/options.md b/docs/docs/Installation/options.md index 90ba7875..0a06063d 100644 --- a/docs/docs/Installation/options.md +++ b/docs/docs/Installation/options.md @@ -41,6 +41,10 @@ Configure the application using the following environment variables: - Description: Site name. - Default: `ZTNET`. +- `HOSTNAME` + - Description: Hostname of the server. Only available in standalone mode. + - Default: `0.0.0.0`. + ### ZeroTier Controller Configuration - `ZT_ADDR` - Description: ZeroTier controller address. Use these settings if you wish to configure a custom ZeroTier controller instead of the default one. From 9d41af8778ed19ebb3502982e48f61d8d52816ae Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sat, 1 Jun 2024 19:43:10 +0200 Subject: [PATCH 3/3] target file --- install.ztnet/bash/ztnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ztnet/bash/ztnet.sh b/install.ztnet/bash/ztnet.sh index 07ac1a38..c5fb0482 100755 --- a/install.ztnet/bash/ztnet.sh +++ b/install.ztnet/bash/ztnet.sh @@ -1038,7 +1038,7 @@ Description=ZTnet Service After=network.target [Service] -EnvironmentFile="$TARGET_DIR/.env" +EnvironmentFile=$TARGET_DIR/.env ExecStart=/usr/bin/node "$TARGET_DIR/server.js" Restart=always