aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
authorAziz Rmadi <[email protected]>2024-04-13 05:49:55 -0500
committerGitHub <[email protected]>2024-04-13 06:49:55 -0400
commit567d96c6245fbca6086687daa40d3f37530b4f36 (patch)
tree0625e96ec8f67aeac693017c033452d368de2813 /caddytest
parent5d8b45c9fbbd40c5c1a43f23a6d0c2f284d2b6ba (diff)
downloadcaddy-567d96c6245fbca6086687daa40d3f37530b4f36.tar.gz
caddy-567d96c6245fbca6086687daa40d3f37530b4f36.zip
fileserver: read etags from precomputed files (#6222)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/file_server_etag_file_extensions.caddyfiletest40
1 files changed, 40 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/file_server_etag_file_extensions.caddyfiletest b/caddytest/integration/caddyfile_adapt/file_server_etag_file_extensions.caddyfiletest
new file mode 100644
index 000000000..d0dc79216
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/file_server_etag_file_extensions.caddyfiletest
@@ -0,0 +1,40 @@
+:8080 {
+ root * ./
+ file_server {
+ etag_file_extensions .b3sum .sha256
+ }
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":8080"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "handler": "vars",
+ "root": "./"
+ },
+ {
+ "etag_file_extensions": [
+ ".b3sum",
+ ".sha256"
+ ],
+ "handler": "file_server",
+ "hide": [
+ "./Caddyfile"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+} \ No newline at end of file