diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-03-04 22:50:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 20:50:05 -0700 |
commit | 09ba9e994e6391162fbfdfbd90c72270bdff3a49 (patch) | |
tree | 29d4d166bda14d28cbcd6b8e8c61126fcbd46a3d /caddytest/integration/caddyfile_adapt | |
parent | be82cc7acae6c259aec176363478cdb390a989ee (diff) |
fileserver: Add `pass_thru` Caddyfile option (#4613)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/file_server_pass_thru.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/file_server_pass_thru.txt b/caddytest/integration/caddyfile_adapt/file_server_pass_thru.txt new file mode 100644 index 0000000..476b165 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/file_server_pass_thru.txt @@ -0,0 +1,32 @@ +:80
+
+file_server {
+ pass_thru
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "handler": "file_server",
+ "hide": [
+ "./Caddyfile"
+ ],
+ "pass_thru": true
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
|