Open MuXiu1997 opened 1 year ago
MuXiu1997/nps-docker-with-env
Out-of-the-box configuration of Nps via env vars entirely 开箱即用的完全通过环境变量配置 Nps
default config file: nps.conf
NPS_XXXX
env NPS_HTTP_PROXY_IP='127.0.0.1' -> set http_proxy_ip to 127.0.0.1
NPS_HTTP_PROXY_IP='127.0.0.1'
http_proxy_ip
127.0.0.1
-http_proxy_ip=0.0.0.0 +http_proxy_ip=127.0.0.1
COMMENT_NPS_XXXX='true'
env COMMENT_NPS_HTTPS_DEFAULT_CERT_FILE='true' -> comment https_default_cert_file line
COMMENT_NPS_HTTPS_DEFAULT_CERT_FILE='true'
https_default_cert_file
-https_default_cert_file=conf/server.pem +#https_default_cert_file=conf/server.pem
COMMENT_NPS_XXXX=''
env COMMENT_NPS_AUTH_KEY='' -> remove comments from auth_key line
COMMENT_NPS_AUTH_KEY=''
auth_key
-#auth_key=test +auth_key=test
env SKIP_GEN_NPS_CONF='true' -> skip generate config file
SKIP_GEN_NPS_CONF='true'
MuXiu1997/nps-docker-with-env
Out-of-the-box configuration of Nps via env vars entirely 开箱即用的完全通过环境变量配置 Nps
Usage Example
default config file: nps.conf
NPS_XXXX
env
NPS_HTTP_PROXY_IP='127.0.0.1'
-> sethttp_proxy_ip
to127.0.0.1
COMMENT_NPS_XXXX='true'
env
COMMENT_NPS_HTTPS_DEFAULT_CERT_FILE='true'
-> commenthttps_default_cert_file
lineCOMMENT_NPS_XXXX=''
env
COMMENT_NPS_AUTH_KEY=''
-> remove comments fromauth_key
lineenv
SKIP_GEN_NPS_CONF='true'
-> skip generate config file