key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.56k stars 230 forks source link

Added ZT_ADDR and ZT_TOKEN environment variables #1

Closed misuzu closed 6 years ago

misuzu commented 6 years ago

Added ZT_ADDR and ZT_TOKEN environment variables to allow easy configuration of zt endpoint and zt token:

ZT_ADDR=localhost:9994 ZT_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx PORT=4000 npm start
laduke commented 6 years ago

hi! I was just going to suggest adding this.

check out the dotenv package to make managing the env more convenient!