caddy/caddytest/integration/caddyfile_adapt
Steffen Brüheim f35a7fa466
encode,staticfiles: Content negotiation, precompressed files (#4045)
* encode: implement prefer setting

* encode: minimum_length configurable via caddyfile

* encode: configurable content-types which to encode

* file_server: support precompressed files

* encode: use ReponseMatcher for conditional encoding of content

* linting error & documentation of encode.PrecompressedOrder

* encode: allow just one response matcher

also change the namespace of the encoders back, I accidently changed to precompressed >.>
default matchers include a *  to match to any charset, that may be appended

* rounding of the PR

* added integration tests for new caddyfile directives
* improved various doc strings (punctuation and typos)
* added json tag for file_server precompress order and encode matcher

* file_server: add vary header, remove accept-ranges when serving precompressed files

* encode: move Suffix implementation to precompressed modules
2021-03-29 18:47:19 -06:00
..
auto_https_disable_redirects.txt httpcaddyfile: Add auto_https global option (#3284) 2020-05-19 16:59:51 -06:00
auto_https_off.txt httpcaddyfile: Add auto_https global option (#3284) 2020-05-19 16:59:51 -06:00
encode_options.txt encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00
file_server_precompressed.txt encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00
global_options_acme.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
global_options_admin.txt caddytls: Support multiple issuers (#3862) 2020-11-16 11:05:55 -07:00
global_options_log_and_site.txt caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
global_options_log_basic.txt caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
global_options_log_custom.txt caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
global_options_log_multi.txt caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
global_options.txt caddytls: Support multiple issuers (#3862) 2020-11-16 11:05:55 -07:00
global_server_options_multi.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
global_server_options_single.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
handle_path_sorting.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
handle_path.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
header.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
http_only_hostnames.txt httpcaddyfile: Skip TLS APs for HTTP-only hosts (fix #3977) 2021-01-19 14:16:06 -07:00
http_only_on_any_address.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
http_only_on_domain.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
http_only_on_localhost.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
http_only_on_non_standard_port.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
https_on_domain.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
import_args_file.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
import_args_snippet.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
log_except_catchall_blocks.txt httpcaddyfile: Fix test on Windows 2020-11-24 18:04:37 -07:00
log_filters.txt logging: add replace filter for static value replacement (#4029) 2021-03-12 13:01:34 -07:00
log_roll_days.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
matcher_syntax.txt httpcaddyfile: support matching headers that do not exist (#3909) 2020-12-09 11:28:14 -07:00
matchers_in_route.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
metrics_disable_om.txt metrics: allow disabling OpenMetrics negotiation (#3944) 2020-12-30 11:44:02 -07:00
metrics_syntax.txt metrics: allow disabling OpenMetrics negotiation (#3944) 2020-12-30 11:44:02 -07:00
not_block_merging.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
php_fastcgi_expanded_form.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
php_fastcgi_index_off.txt fastcgi: Add timeouts support to Caddyfile adapter (#3842) 2020-11-02 15:11:17 -07:00
php_fastcgi_matcher.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
php_fastcgi_subdirectives.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
portless_upstream.txt reverseproxy: default to port 80 for upstreams in Caddyfile (#3772) 2020-10-01 13:53:19 -06:00
request_body.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
request_header.txt headers: Fix Caddyfile parsing for request_header with matchers (#4085) 2021-03-29 10:55:29 -06:00
reverse_proxy_empty_non_http_transport.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
reverse_proxy_h2c_shorthand.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
reverse_proxy_health_headers.txt reverseproxy: Caddyfile health check headers, host header support (#3948) 2021-01-04 11:26:18 -07:00
reverse_proxy_health_path_query.txt reverseproxy: Implement health_uri, deprecate health_path, supports query (#4050) 2021-03-29 18:36:40 -06:00
reverse_proxy_options.txt reverseproxy: Wire up some http transport options in Caddyfile (#3843) 2020-11-02 14:59:02 -07:00
reverse_proxy_upstream_placeholder.txt reverseproxy: Fix upstreams with placeholders with no port (#4046) 2021-03-03 10:12:31 -07:00
shorthand_parameterized_placeholders.txt caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
site_block_sorting.txt httpcaddyfile: Fix catch-all site block sorting 2021-02-22 11:15:11 -07:00
sort_directives_with_any_matcher_first.txt httpcaddyfile: Configure servers via global options (#3836) 2020-11-23 12:46:50 -07:00
tls_automation_policies_1.txt httpcaddyfile: Adjust iterator when removing AP (fix #3953) 2021-01-04 11:25:41 -07:00
tls_automation_policies_2.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
tls_automation_policies_3.txt httpcaddyfile: Fix automation policies 2021-02-08 11:06:19 -07:00
tls_client_auth_cert_file.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
tls_client_auth_inline_cert.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
tls_conn_policy_consolidate.txt caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00