-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fileserver: Add
pass_thru
Caddyfile option (#4613)
- Loading branch information
1 parent
be82cc7
commit 09ba9e9
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
caddytest/integration/caddyfile_adapt/file_server_pass_thru.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters