Advertisement
thunderbird32

records.config

Nov 5th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. ##############################################################################
  2. # *NOTE*: All options covered in this file should be documented in the docs:
  3. #
  4. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/records.config.en.html
  5. ##############################################################################
  6.  
  7. ##############################################################################
  8. # Thread configurations. Docs:
  9. # https://docs.trafficserver.apache.org/records.config#proxy-config-exec-thread-autoconfig
  10. ##############################################################################
  11. CONFIG proxy.config.exec_thread.autoconfig INT 1
  12. CONFIG proxy.config.exec_thread.autoconfig.scale FLOAT 1.5
  13. CONFIG proxy.config.exec_thread.limit INT 2
  14. CONFIG proxy.config.ssl.number.threads INT -1
  15. CONFIG proxy.config.accept_threads INT 1
  16. CONFIG proxy.config.task_threads INT 2
  17. CONFIG proxy.config.cache.threads_per_disk INT 8
  18. # https://docs.trafficserver.apache.org/records.config#proxy-config-exec-thread-affinity
  19. CONFIG proxy.config.exec_thread.affinity INT 1
  20.  
  21. ##############################################################################
  22. # Specify server addresses and ports to bind for HTTP and HTTPS. Docs:
  23. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-server-ports
  24. ##############################################################################
  25. CONFIG proxy.config.http.server_ports STRING 80 443
  26. CONFIG proxy.config.http.connect_ports STRING 80
  27.  
  28. ##############################################################################
  29. # Enable HTTP/2 Support. Docs:
  30. # https://docs.trafficserver.apache.org/records.config#http-2-configuration
  31. ##############################################################################
  32. CONFIG proxy.config.http2.enabled INT 0
  33.  
  34. ##############################################################################
  35. # Via: headers. Docs:
  36. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-insert-response-via-str
  37. ##############################################################################
  38. CONFIG proxy.config.http.insert_request_via_str INT 1
  39. CONFIG proxy.config.http.insert_response_via_str INT 0
  40.  
  41. ##############################################################################
  42. # Parent proxy configuration, in addition to these settings also see parent.config. Docs:
  43. # https://docs.trafficserver.apache.org/records.config#parent-proxy-configuration
  44. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/parent.config.en.html
  45. ##############################################################################
  46. CONFIG proxy.config.http.parent_proxy_routing_enable INT 0
  47. CONFIG proxy.config.http.parent_proxy.retry_time INT 300
  48. CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout INT 30
  49. CONFIG proxy.config.http.forward.proxy_auth_to_parent INT 0
  50. CONFIG proxy.config.http.uncacheable_requests_bypass_parent INT 1
  51.  
  52. ##############################################################################
  53. # HTTP connection timeouts (secs). Docs:
  54. # https://docs.trafficserver.apache.org/records.config#http-connection-timeouts
  55. ##############################################################################
  56. CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 115
  57. CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 120
  58. CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30
  59. CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30
  60. CONFIG proxy.config.http.transaction_active_timeout_in INT 900
  61. CONFIG proxy.config.http.transaction_active_timeout_out INT 0
  62. CONFIG proxy.config.http.accept_no_activity_timeout INT 120
  63. CONFIG proxy.config.net.default_inactivity_timeout INT 86400
  64.  
  65. ##############################################################################
  66. # Origin server connect attempts. Docs:
  67. # https://docs.trafficserver.apache.org/records.config#origin-server-connect-attempts
  68. ##############################################################################
  69. CONFIG proxy.config.http.connect_attempts_max_retries INT 3
  70. CONFIG proxy.config.http.connect_attempts_max_retries_dead_server INT 1
  71. CONFIG proxy.config.http.connect_attempts_rr_retries INT 3
  72. CONFIG proxy.config.http.connect_attempts_timeout INT 30
  73. CONFIG proxy.config.http.post_connect_attempts_timeout INT 1800
  74. CONFIG proxy.config.http.down_server.cache_time INT 60
  75. CONFIG proxy.config.http.down_server.abort_threshold INT 10
  76.  
  77. ##############################################################################
  78. # Negative response caching, for redirects and errors. Docs:
  79. # https://docs.trafficserver.apache.org/records.config#negative-response-caching
  80. ##############################################################################
  81. CONFIG proxy.config.http.negative_caching_enabled INT 0
  82. CONFIG proxy.config.http.negative_caching_lifetime INT 1800
  83.  
  84. ##############################################################################
  85. # Proxy users variables. Docs:
  86. # https://docs.trafficserver.apache.org/records.config#proxy-user-variables
  87. ##############################################################################
  88. CONFIG proxy.config.http.anonymize_insert_client_ip INT 1
  89. CONFIG proxy.config.http.insert_squid_x_forwarded_for INT 1
  90.  
  91. ##############################################################################
  92. # Security. Docs:
  93. # https://docs.trafficserver.apache.org/records.config#security
  94. ##############################################################################
  95. CONFIG proxy.config.http.push_method_enabled INT 0
  96.  
  97. ##############################################################################
  98. # Enable / disable HTTP caching. Useful for testing, but also as an
  99. # overridable (per remap) config
  100. ##############################################################################
  101. CONFIG proxy.config.http.cache.http INT 1
  102.  
  103. ##############################################################################
  104. # Cache control. Docs:
  105. # https://docs.trafficserver.apache.org/records.config#cache-control
  106. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/cache.config.en.html
  107. ##############################################################################
  108. CONFIG proxy.config.http.cache.ignore_client_cc_max_age INT 1
  109. CONFIG proxy.config.http.normalize_ae_gzip INT 1
  110. CONFIG proxy.config.http.cache.cache_responses_to_cookies INT 1
  111. CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 1
  112. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-when-to-revalidate
  113. CONFIG proxy.config.http.cache.when_to_revalidate INT 0
  114. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-required-headers
  115. CONFIG proxy.config.http.cache.required_headers INT 2
  116.  
  117. ##############################################################################
  118. # Heuristic cache expiration. Docs:
  119. # https://docs.trafficserver.apache.org/records.config#heuristic-expiration
  120. ##############################################################################
  121. CONFIG proxy.config.http.cache.heuristic_min_lifetime INT 3600
  122. CONFIG proxy.config.http.cache.heuristic_max_lifetime INT 86400
  123. CONFIG proxy.config.http.cache.heuristic_lm_factor FLOAT 0.10
  124.  
  125. ##############################################################################
  126. # Network. Docs:
  127. # https://docs.trafficserver.apache.org/records.config#network
  128. ##############################################################################
  129. CONFIG proxy.config.net.connections_throttle INT 30000
  130. CONFIG proxy.config.net.max_connections_in INT 30000
  131. CONFIG proxy.config.net.max_connections_active_in INT 10000
  132.  
  133. ##############################################################################
  134. # RAM and disk cache configurations. Docs:
  135. # https://docs.trafficserver.apache.org/records.config#ram-cache
  136. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/storage.config.en.html
  137. ##############################################################################
  138. CONFIG proxy.config.cache.ram_cache.size INT -1
  139. CONFIG proxy.config.cache.ram_cache_cutoff INT 4194304
  140. # https://docs.trafficserver.apache.org/records.config#proxy-config-cache-limits-http-max-alts
  141. CONFIG proxy.config.cache.limits.http.max_alts INT 5
  142. # https://docs.trafficserver.apache.org/records.config#proxy-config-cache-max-doc-size
  143. CONFIG proxy.config.cache.max_doc_size INT 0
  144. CONFIG proxy.config.cache.min_average_object_size INT 8000
  145.  
  146. ##############################################################################
  147. # Logging Config. Docs:
  148. # https://docs.trafficserver.apache.org/records.config#logging-configuration
  149. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/logs_xml.config.en.html
  150. ##############################################################################
  151. CONFIG proxy.config.log.logging_enabled INT 3
  152. CONFIG proxy.config.log.max_space_mb_for_logs INT 25000
  153. CONFIG proxy.config.log.max_space_mb_headroom INT 1000
  154. CONFIG proxy.config.log.rolling_enabled INT 1
  155. CONFIG proxy.config.log.rolling_interval_sec INT 86400
  156. CONFIG proxy.config.log.rolling_size_mb INT 10
  157. CONFIG proxy.config.log.auto_delete_rolled_files INT 1
  158. CONFIG proxy.config.log.periodic_tasks_interval INT 5
  159.  
  160. ##############################################################################
  161. # These settings control remapping, and if the proxy allows (open) forward proxy or not. Docs:
  162. # https://docs.trafficserver.apache.org/records.config#url-remap-rules
  163. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/remap.config.en.html
  164. ##############################################################################
  165. CONFIG proxy.config.url_remap.remap_required INT 1
  166. # https://docs.trafficserver.apache.org/records.config#proxy-config-url-remap-pristine-host-hdr
  167. CONFIG proxy.config.url_remap.pristine_host_hdr INT 1
  168. # https://docs.trafficserver.apache.org/records.config#reverse-proxy
  169. CONFIG proxy.config.reverse_proxy.enabled INT 1
  170.  
  171. ##############################################################################
  172. # SSL Termination. Docs:
  173. # https://docs.trafficserver.apache.org/records.config#client-related-configuration
  174. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/ssl_multicert.config.en.html
  175. ##############################################################################
  176. CONFIG proxy.config.ssl.client.verify.server INT 0
  177. CONFIG proxy.config.ssl.client.CA.cert.filename STRING NULL
  178. CONFIG proxy.config.ssl.server.cipher_suite STRING ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
  179. CONFIG proxy.config.ssl.server.cert.path STRING etc/ssl/certs/
  180. CONFIG proxy.config.ssl.server.private_key.path STRING etc/ssl/keys/
  181. CONFIG proxy.config.ssl.TLSv1_2 INT 1
  182. CONFIG proxy.config.ssl.TLSv1_1 INT 1
  183. CONFIG proxy.config.ssl.client.certification_level INT 0
  184.  
  185.  
  186. ##############################################################################
  187. # ICP Configuration. Docs:
  188. # https://docs.trafficserver.apache.org/records.config#icp-configuration
  189. # https://docs.trafficserver.apache.org/en/latest/reference/configuration/icp.config.en.html
  190. ##############################################################################
  191. CONFIG proxy.config.icp.enabled INT 0
  192.  
  193. ##############################################################################
  194. # Debugging. Docs:
  195. # https://docs.trafficserver.apache.org/records.config#diagnostic-logging-configuration
  196. ##############################################################################
  197. CONFIG proxy.config.diags.debug.enabled INT 0
  198. CONFIG proxy.config.diags.debug.tags STRING http.*|dns.*
  199. # ToDo: Undocumented
  200. CONFIG proxy.config.dump_mem_info_frequency INT 0
  201. CONFIG proxy.config.http.slow.log.threshold INT 0
  202.  
  203. ##############################################################################
  204. # Cluster Subsystem. Docs:
  205. # https://docs.trafficserver.apache.org/records.config#cluster
  206. ##############################################################################
  207. LOCAL proxy.local.cluster.type INT 3
  208. CONFIG proxy.config.cluster.ethernet_interface STRING lo
  209. CONFIG proxy.config.cluster.cluster_port INT 8086
  210. CONFIG proxy.config.cluster.rsport INT 8088
  211. CONFIG proxy.config.cluster.mcport INT 8089
  212. CONFIG proxy.config.cluster.mc_group_addr STRING 224.0.1.37
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement