nps.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. # if web under proxy use sub path. like http://host/nps need this.
  38. #web_base_url=/nps
  39. #Web API unauthenticated IP address(the len of auth_crypt_key must be 16)
  40. auth_key=test
  41. auth_crypt_key =1234567812345678
  42. #allow_ports=9001-9009,10001,11000-12000
  43. #Web management multi-user login
  44. allow_user_login=false
  45. allow_user_register=false
  46. allow_user_change_username=false
  47. #extension
  48. allow_flow_limit=false
  49. allow_rate_limit=false
  50. allow_tunnel_num_limit=false
  51. allow_local_proxy=false
  52. allow_connection_num_limit=false
  53. allow_multi_ip=false
  54. system_info_display=false
  55. #cache
  56. http_cache=false
  57. http_cache_length=100