1
0

nps.conf 1.9 KB

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