/package/network/services/uhttpd/files/uhttpd.config

https://github.com/wm5d8b/openwrt · ASP.NET · 119 lines · 93 code · 26 blank · 0 comment · 9 complexity · 76707e34feb9eca63bd06fed926efd8d MD5 · raw file

  1. # Server configuration
  2. config uhttpd main
  3. # HTTP listen addresses, multiple allowed
  4. list listen_http 0.0.0.0:80
  5. list listen_http [::]:80
  6. # HTTPS listen addresses, multiple allowed
  7. list listen_https 0.0.0.0:443
  8. list listen_https [::]:443
  9. # Server document root
  10. option home /www
  11. # Reject requests from RFC1918 IP addresses
  12. # directed to the servers public IP(s).
  13. # This is a DNS rebinding countermeasure.
  14. option rfc1918_filter 1
  15. # Maximum number of concurrent requests.
  16. # If this number is exceeded, further requests are
  17. # queued until the number of running requests drops
  18. # below the limit again.
  19. option max_requests 3
  20. # Maximum number of concurrent connections.
  21. # If this number is exceeded, further TCP connection
  22. # attempts are queued until the number of active
  23. # connections drops below the limit again.
  24. option max_connections 100
  25. # Certificate and private key for HTTPS.
  26. # If no listen_https addresses are given,
  27. # the key options are ignored.
  28. option cert /etc/uhttpd.crt
  29. option key /etc/uhttpd.key
  30. # CGI url prefix, will be searched in docroot.
  31. # Default is /cgi-bin
  32. option cgi_prefix /cgi-bin
  33. # List of extension->interpreter mappings.
  34. # Files with an associated interpreter can
  35. # be called outside of the CGI prefix and do
  36. # not need to be executable.
  37. # list interpreter ".php=/usr/bin/php-cgi"
  38. # list interpreter ".cgi=/usr/bin/perl"
  39. # Lua url prefix and handler script.
  40. # Lua support is disabled if no prefix given.
  41. # option lua_prefix /luci
  42. # option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua
  43. # Specify the ubus-rpc prefix and socket path.
  44. # option ubus_prefix /ubus
  45. # option ubus_socket /var/run/ubus.sock
  46. # CGI/Lua timeout, if the called script does not
  47. # write data within the given amount of seconds,
  48. # the server will terminate the request with
  49. # 504 Gateway Timeout response.
  50. option script_timeout 60
  51. # Network timeout, if the current connection is
  52. # blocked for the specified amount of seconds,
  53. # the server will terminate the associated
  54. # request process.
  55. option network_timeout 30
  56. # HTTP Keep-Alive, specifies the timeout for persistent
  57. # HTTP/1.1 connections. Setting this to 0 will disable
  58. # persistent HTTP connections.
  59. option http_keepalive 20
  60. # TCP Keep-Alive, send periodic keep-alive probes
  61. # over established connections to detect dead peers.
  62. # The value is given in seconds to specify the
  63. # interval between subsequent probes.
  64. # Setting this to 0 will disable TCP keep-alive.
  65. option tcp_keepalive 1
  66. # Basic auth realm, defaults to local hostname
  67. # option realm OpenWrt
  68. # Configuration file in busybox httpd format
  69. # option config /etc/httpd.conf
  70. # Do not follow symlinks that point outside of the
  71. # home directory.
  72. # option no_symlinks 0
  73. # Do not produce directory listings but send 403
  74. # instead if a client requests an url pointing to
  75. # a directory without any index file.
  76. # option no_dirlists 0
  77. # Do not authenticate any ubus-rpc requests against
  78. # the ubus session/access procedure.
  79. # This is dangerous and should be always left off
  80. # except for development and debug purposes!
  81. # option no_ubusauth 0
  82. # Certificate defaults for px5g key generator
  83. config cert px5g
  84. # Validity time
  85. option days 730
  86. # RSA key size
  87. option bits 1024
  88. # Location
  89. option country DE
  90. option state Berlin
  91. option location Berlin
  92. # Common name
  93. option commonname OpenWrt