We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8209b2e commit aef1585Copy full SHA for aef1585
Caddyfile
@@ -25,12 +25,16 @@
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/{re.id_path.2}
34
+ transport http {
35
+ # We have to TLS explicitly because you can't use https:// with a placeholder
36
+ tls
37
+ }
38
39
# Set appropriate headers
40
header_up Host {upstream_hostport}
0 commit comments