Guest User

records.conf

a guest
Aug 22nd, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 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/records.config
  5. ##############################################################################
  6.  
  7. ##############################################################################
  8. # Thread configurations. Docs:
  9. # https://docs.trafficserver.apache.org/records.config#thread-variables
  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.accept_threads INT 1
  15. CONFIG proxy.config.task_threads INT 2
  16. CONFIG proxy.config.cache.threads_per_disk INT 8
  17. CONFIG proxy.config.exec_thread.affinity INT 1
  18.  
  19. ##############################################################################
  20. # Specify server addresses and ports to bind for HTTP and HTTPS. Docs:
  21. # https://docs.trafficserver.apache.org/records.config#proxy.config.http.server_ports
  22. ##############################################################################
  23. CONFIG proxy.config.http.server_ports STRING 8080 8080:ipv6
  24.  
  25. ##############################################################################
  26. # Via: headers. Docs:
  27. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-insert-response-via-str
  28. ##############################################################################
  29. CONFIG proxy.config.http.insert_request_via_str INT 1
  30. CONFIG proxy.config.http.insert_response_via_str INT 0
  31.  
  32. ##############################################################################
  33. # Parent proxy configuration, in addition to these settings also see parent.config. Docs:
  34. # https://docs.trafficserver.apache.org/records.config#parent-proxy-configuration
  35. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html
  36. ##############################################################################
  37. CONFIG proxy.config.http.parent_proxy_routing_enable INT 0
  38. CONFIG proxy.config.http.parent_proxy.retry_time INT 300
  39. CONFIG proxy.config.http.parent_proxy.connect_attempts_timeout INT 30
  40. CONFIG proxy.config.http.forward.proxy_auth_to_parent INT 0
  41. CONFIG proxy.config.http.uncacheable_requests_bypass_parent INT 1
  42.  
  43. ##############################################################################
  44. # HTTP connection timeouts (secs). Docs:
  45. # https://docs.trafficserver.apache.org/records.config#http-connection-timeouts
  46. ##############################################################################
  47. CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 120
  48. CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 120
  49. CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30
  50. CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30
  51. CONFIG proxy.config.http.transaction_active_timeout_in INT 900
  52. CONFIG proxy.config.http.transaction_active_timeout_out INT 0
  53. CONFIG proxy.config.http.accept_no_activity_timeout INT 120
  54. CONFIG proxy.config.net.default_inactivity_timeout INT 86400
  55.  
  56. ##############################################################################
  57. # Origin server connect attempts. Docs:
  58. # https://docs.trafficserver.apache.org/records.config#origin-server-connect-attempts
  59. ##############################################################################
  60. CONFIG proxy.config.http.connect_attempts_max_retries INT 3
  61. CONFIG proxy.config.http.connect_attempts_max_retries_dead_server INT 1
  62. CONFIG proxy.config.http.connect_attempts_rr_retries INT 3
  63. CONFIG proxy.config.http.connect_attempts_timeout INT 30
  64. CONFIG proxy.config.http.post_connect_attempts_timeout INT 1800
  65. CONFIG proxy.config.http.down_server.cache_time INT 60
  66. CONFIG proxy.config.http.down_server.abort_threshold INT 10
  67.  
  68. ##############################################################################
  69. # Negative response caching, for redirects and errors. Docs:
  70. # https://docs.trafficserver.apache.org/records.config#negative-response-caching
  71. ##############################################################################
  72. CONFIG proxy.config.http.negative_caching_enabled INT 0
  73. CONFIG proxy.config.http.negative_caching_lifetime INT 1800
  74.  
  75. ##############################################################################
  76. # Proxy users variables. Docs:
  77. # https://docs.trafficserver.apache.org/records.config#proxy-user-variables
  78. ##############################################################################
  79. CONFIG proxy.config.http.insert_client_ip INT 1
  80. CONFIG proxy.config.http.insert_squid_x_forwarded_for INT 1
  81.  
  82. ##############################################################################
  83. # Security. Docs:
  84. # https://docs.trafficserver.apache.org/records.config#security
  85. ##############################################################################
  86. CONFIG proxy.config.http.push_method_enabled INT 0
  87.  
  88. ##############################################################################
  89. # Enable / disable HTTP caching. Useful for testing, but also as an
  90. # overridable (per remap) config
  91. ##############################################################################
  92. CONFIG proxy.config.http.cache.http INT 1
  93.  
  94. ##############################################################################
  95. # Cache control. Docs:
  96. # https://docs.trafficserver.apache.org/records.config#cache-control
  97. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/cache.config.en.html
  98. ##############################################################################
  99. CONFIG proxy.config.http.cache.ignore_client_cc_max_age INT 1
  100. CONFIG proxy.config.http.normalize_ae INT 1
  101. CONFIG proxy.config.http.cache.cache_responses_to_cookies INT 1
  102. CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 1
  103. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-when-to-revalidate
  104. CONFIG proxy.config.http.cache.when_to_revalidate INT 0
  105. # https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-required-headers
  106. CONFIG proxy.config.http.cache.required_headers INT 2
  107.  
  108. ##############################################################################
  109. # Heuristic cache expiration. Docs:
  110. # https://docs.trafficserver.apache.org/records.config#heuristic-expiration
  111. ##############################################################################
  112. CONFIG proxy.config.http.cache.heuristic_min_lifetime INT 3600
  113. CONFIG proxy.config.http.cache.heuristic_max_lifetime INT 86400
  114. CONFIG proxy.config.http.cache.heuristic_lm_factor FLOAT 0.10
  115.  
  116. ##############################################################################
  117. # Network. Docs:
  118. # https://docs.trafficserver.apache.org/records.config#network
  119. ##############################################################################
  120. CONFIG proxy.config.net.connections_throttle INT 30000
  121. CONFIG proxy.config.net.max_connections_in INT 30000
  122. CONFIG proxy.config.net.max_connections_active_in INT 10000
  123.  
  124. ##############################################################################
  125. # RAM and disk cache configurations. Docs:
  126. # https://docs.trafficserver.apache.org/records.config#ram-cache
  127. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/storage.config.en.html
  128. ##############################################################################
  129. CONFIG proxy.config.cache.ram_cache.size INT -1
  130. CONFIG proxy.config.cache.ram_cache_cutoff INT 4194304
  131. # https://docs.trafficserver.apache.org/records.config#proxy-config-cache-limits-http-max-alts
  132. CONFIG proxy.config.cache.limits.http.max_alts INT 5
  133. # https://docs.trafficserver.apache.org/records.config#proxy-config-cache-max-doc-size
  134. CONFIG proxy.config.cache.max_doc_size INT 0
  135. CONFIG proxy.config.cache.min_average_object_size INT 8000
  136.  
  137. ##############################################################################
  138. # Logging Config. Docs:
  139. # https://docs.trafficserver.apache.org/records.config#logging-configuration
  140. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/logging.yaml.en.html
  141. ##############################################################################
  142. CONFIG proxy.config.log.logging_enabled INT 3
  143. CONFIG proxy.config.log.max_space_mb_for_logs INT 2000
  144. CONFIG proxy.config.log.max_space_mb_headroom INT 1000
  145. CONFIG proxy.config.log.rolling_enabled INT 1
  146. CONFIG proxy.config.log.rolling_interval_sec INT 86400
  147. CONFIG proxy.config.log.rolling_size_mb INT 10
  148. CONFIG proxy.config.log.auto_delete_rolled_files INT 1
  149. CONFIG proxy.config.log.periodic_tasks_interval INT 5
  150.  
  151. ##############################################################################
  152. # These settings control remapping, and if the proxy allows (open) forward proxy or not. Docs:
  153. # https://docs.trafficserver.apache.org/records.config#url-remap-rules
  154. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/remap.config.en.html
  155. ##############################################################################
  156. CONFIG proxy.config.url_remap.remap_required INT 1
  157. # https://docs.trafficserver.apache.org/records.config#proxy-config-url-remap-pristine-host-hdr
  158. CONFIG proxy.config.url_remap.pristine_host_hdr INT 1
  159. # https://docs.trafficserver.apache.org/records.config#reverse-proxy
  160. CONFIG proxy.config.reverse_proxy.enabled INT 1
  161.  
  162. ##############################################################################
  163. # SSL Termination. Docs:
  164. # https://docs.trafficserver.apache.org/records.config#client-related-configuration
  165. # https://docs.trafficserver.apache.org/en/latest/admin-guide/files/ssl_multicert.config.en.html
  166. ##############################################################################
  167. CONFIG proxy.config.ssl.client.verify.server INT 0
  168. CONFIG proxy.config.ssl.client.CA.cert.filename STRING NULL
  169. 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:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
  170. CONFIG proxy.config.ssl.client.certification_level INT 0
  171. CONFIG proxy.config.ssl.server.cert.path STRING etc/ssl/certs/
  172. CONFIG proxy.config.ssl.server.private_key.path STRING etc/ssl/keys/
  173. ##############################################################################
  174. # Debugging. Docs:
  175. # https://docs.trafficserver.apache.org/records.config#diagnostic-logging-configuration
  176. ##############################################################################
  177. CONFIG proxy.config.diags.debug.enabled INT 0
  178. CONFIG proxy.config.diags.debug.tags STRING http|dns
  179. # ToDo: Undocumented
  180. CONFIG proxy.config.dump_mem_info_frequency INT 0
  181. CONFIG proxy.config.http.slow.log.threshold INT 0
  182. CONFIG proxy.config.admin.user_id STRING trafficserver
  183.  
Advertisement
Add Comment
Please, Sign In to add comment