Skip to content

Commit

Permalink
Merge pull request #428 from sinamics/load-env
Browse files Browse the repository at this point in the history
Load env file into systemd service.
  • Loading branch information
sinamics authored Jun 1, 2024
2 parents 8b4079c + 9d41af8 commit 07a60bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/Installation/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions install.ztnet/bash/ztnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07a60bf

Please sign in to comment.