-
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.
Showing
8 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
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,27 @@ | ||
{ | ||
pki { | ||
ca internal { | ||
name "Internal" | ||
root_cn "Internal Root Cert" | ||
intermediate_cn "Internal Intermediate Cert" | ||
} | ||
ca internal-long-lived { | ||
name "Long-lived" | ||
root_cn "Internal Root Cert 2" | ||
intermediate_cn "Internal Intermediate Cert 2" | ||
} | ||
} | ||
} | ||
|
||
acme-internal.example.com { | ||
acme_server { | ||
ca internal | ||
} | ||
} | ||
|
||
acme-long-lived.example.com { | ||
acme_server { | ||
ca internal-long-lived | ||
lifetime 7d | ||
} | ||
} |
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,63 @@ | ||
:8884 | ||
|
||
reverse_proxy 127.0.0.1:65535 { | ||
@500 status 500 | ||
replace_status @500 400 | ||
|
||
@all status 2xx 3xx 4xx 5xx | ||
replace_status @all {http.error.status_code} | ||
|
||
replace_status {http.error.status_code} | ||
|
||
@accel header X-Accel-Redirect * | ||
handle_response @accel { | ||
respond "Header X-Accel-Redirect!" | ||
} | ||
|
||
@another { | ||
header X-Another * | ||
} | ||
handle_response @another { | ||
respond "Header X-Another!" | ||
} | ||
|
||
@401 status 401 | ||
handle_response @401 { | ||
respond "Status 401!" | ||
} | ||
|
||
handle_response { | ||
respond "Any! This should be last in the JSON!" | ||
} | ||
|
||
@403 { | ||
status 403 | ||
} | ||
handle_response @403 { | ||
respond "Status 403!" | ||
} | ||
|
||
@multi { | ||
status 401 403 | ||
status 404 | ||
header Foo * | ||
header Bar * | ||
} | ||
handle_response @multi { | ||
respond "Headers Foo, Bar AND statuses 401, 403 and 404!" | ||
} | ||
|
||
@200 status 200 | ||
handle_response @200 { | ||
copy_response_headers { | ||
include Foo Bar | ||
} | ||
respond "Copied headers from the response" | ||
} | ||
|
||
@201 status 201 | ||
handle_response @201 { | ||
header Foo "Copying the response" | ||
copy_response 404 | ||
} | ||
} |
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
Submodule vscode-caddyfile
added at
7e25ac
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,31 @@ | ||
--- | ||
name: vscode-caddyfile | ||
version: 7e25ac572eaf74ac916eeb2f3dc3ba2ac9faf042 | ||
type: git_submodule | ||
homepage: https://github.com/caddyserver/vscode-caddyfile.git | ||
license: mit | ||
licenses: | ||
- sources: LICENSE | ||
text: | | ||
MIT License | ||
Copyright (c) 2023 Matthew Penner | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
notices: [] |