We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8209b2e commit 1517086Copy full SHA for 1517086
Caddyfile
@@ -25,12 +25,17 @@
25
# from: https://errors.httptoolkit.tech/o123/api/456/...
26
# to: https://o123.ingest.us.sentry.io/api/456/...
27
@has_id_path {
28
- path_regexp id_path ^/o(\d+)(.*)$
+ path_regexp id_path ^/(o\d+)/(.*)$
29
}
30
31
handle @has_id_path {
32
- reverse_proxy https://{re.id_path.1}.ingest.us.sentry.io {
33
- uri {re.id_path.2}
+ reverse_proxy {
+ to {re.id_path.1}.ingest.us.sentry.io:443
34
+ uri /{re.id_path.2}
35
+ transport http {
36
+ # We have to TLS explicitly because you can't use https:// with a placeholder
37
+ tls
38
+ }
39
40
# Set appropriate headers
41
header_up Host {upstream_hostport}
0 commit comments