ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.

Home Page:https://ehang.io/nps/documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nps docker image configured via env vars | 通过环境变量配置的 nps docker 镜像

MuXiu1997 opened this issue · comments

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' -> set http_proxy_ip to 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

    -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

    -#auth_key=test
    +auth_key=test

env SKIP_GEN_NPS_CONF='true' -> skip generate config file