2019-02-03 01:25:00 -08:00
|
|
|
appname = nps
|
2019-02-09 01:07:47 -08:00
|
|
|
#Boot mode(dev|pro)
|
2019-04-08 02:01:08 -07:00
|
|
|
runmode = dev
|
2019-03-04 17:23:18 -08:00
|
|
|
|
|
|
|
#HTTP(S) proxy port, no startup if empty
|
2019-04-01 08:54:03 -07:00
|
|
|
http_proxy_ip=0.0.0.0
|
2019-03-04 17:23:18 -08:00
|
|
|
http_proxy_port=80
|
2019-03-23 07:19:59 -07:00
|
|
|
https_proxy_port=443
|
2019-03-19 07:41:40 -07:00
|
|
|
https_just_proxy=true
|
2019-04-01 08:54:03 -07:00
|
|
|
#default https certificate setting
|
|
|
|
https_default_cert_file=conf/server.pem
|
|
|
|
https_default_key_file=conf/server.key
|
2019-03-04 17:23:18 -08:00
|
|
|
|
|
|
|
##bridge
|
|
|
|
bridge_type=tcp
|
|
|
|
bridge_port=8024
|
|
|
|
bridge_ip=0.0.0.0
|
2019-02-12 11:54:00 -08:00
|
|
|
|
|
|
|
# Public password, which clients can use to connect to the server
|
|
|
|
# After the connection, the server will be able to open relevant ports and parse related domain names according to its own configuration file.
|
2019-03-04 17:23:18 -08:00
|
|
|
public_vkey=123
|
2019-02-12 11:54:00 -08:00
|
|
|
|
2019-02-23 07:29:48 -08:00
|
|
|
#Traffic data persistence interval(minute)
|
|
|
|
#Ignorance means no persistence
|
2019-03-04 17:23:18 -08:00
|
|
|
#flow_store_interval=1
|
2019-02-23 07:29:48 -08:00
|
|
|
|
2019-03-04 17:23:18 -08:00
|
|
|
# log level LevelEmergency->0 LevelAlert->1 LevelCritical->2 LevelError->3 LevelWarning->4 LevelNotice->5 LevelInformational->6 LevelDebug->7
|
2019-03-14 23:03:49 -07:00
|
|
|
log_level=7
|
2019-12-13 20:25:24 -08:00
|
|
|
#log_path=nps.log
|
2019-02-23 21:17:43 -08:00
|
|
|
|
|
|
|
#Whether to restrict IP access, true or false or ignore
|
2019-03-04 17:23:18 -08:00
|
|
|
#ip_limit=true
|
2019-02-23 21:17:43 -08:00
|
|
|
|
2019-03-04 17:23:18 -08:00
|
|
|
#p2p
|
2019-04-11 14:43:03 -07:00
|
|
|
#p2p_ip=127.0.0.1
|
|
|
|
#p2p_port=6000
|
2019-03-01 01:23:14 -08:00
|
|
|
|
2019-03-04 17:23:18 -08:00
|
|
|
#web
|
2019-03-14 23:03:49 -07:00
|
|
|
web_host=a.o.com
|
2019-03-04 17:23:18 -08:00
|
|
|
web_username=admin
|
|
|
|
web_password=123
|
|
|
|
web_port = 8080
|
|
|
|
web_ip=0.0.0.0
|
2019-05-10 09:29:55 -07:00
|
|
|
web_base_url=
|
2019-12-14 01:39:46 -08:00
|
|
|
web_open_ssl=false
|
|
|
|
web_cert_file=conf/server.pem
|
|
|
|
web_key_file=conf/server.key
|
2019-05-10 09:29:55 -07:00
|
|
|
# if web under proxy use sub path. like http://host/nps need this.
|
|
|
|
#web_base_url=/nps
|
2019-03-23 07:19:59 -07:00
|
|
|
|
|
|
|
#Web API unauthenticated IP address(the len of auth_crypt_key must be 16)
|
2020-01-13 01:29:25 -08:00
|
|
|
#Remove comments if needed
|
|
|
|
#auth_key=test
|
2019-03-07 02:07:53 -08:00
|
|
|
auth_crypt_key =1234567812345678
|
2019-03-01 01:23:14 -08:00
|
|
|
|
2019-03-14 23:03:49 -07:00
|
|
|
#allow_ports=9001-9009,10001,11000-12000
|
2019-03-25 20:13:07 -07:00
|
|
|
|
2019-03-26 00:23:39 -07:00
|
|
|
#Web management multi-user login
|
2019-04-08 02:01:08 -07:00
|
|
|
allow_user_login=false
|
|
|
|
allow_user_register=false
|
|
|
|
allow_user_change_username=false
|
|
|
|
|
2019-04-04 02:46:06 -07:00
|
|
|
|
|
|
|
#extension
|
|
|
|
allow_flow_limit=false
|
|
|
|
allow_rate_limit=false
|
2019-04-08 02:01:08 -07:00
|
|
|
allow_tunnel_num_limit=false
|
|
|
|
allow_local_proxy=false
|
2019-04-04 02:46:06 -07:00
|
|
|
allow_connection_num_limit=false
|
|
|
|
allow_multi_ip=false
|
2019-04-08 02:01:08 -07:00
|
|
|
system_info_display=false
|
|
|
|
|
|
|
|
#cache
|
2019-04-08 03:02:54 -07:00
|
|
|
http_cache=false
|
2019-04-08 02:01:08 -07:00
|
|
|
http_cache_length=100
|
2019-04-04 02:46:06 -07:00
|
|
|
|
2020-01-13 02:31:03 -08:00
|
|
|
#get origin ip
|
|
|
|
http_add_origin_header=false
|
2020-02-09 00:54:40 -08:00
|
|
|
|
|
|
|
#pprof debug options
|
|
|
|
#pprof_ip=0.0.0.0
|
|
|
|
#pprof_port=9999
|
2020-05-07 08:29:45 -07:00
|
|
|
|
|
|
|
#client disconnect timeout
|
|
|
|
disconnect_timeout=60
|