1. Output of caddy version
:
v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
2. How I run Caddy:
./caddy run
a. System environment:
Ubuntu 20.04 LTS
b. Command:
sudo ./caddy run
c. Service/unit/compose file:
I am not using Docker/systemd/Kubernetes/make
so I don’t have this kind of file.
d. My complete Caddy config:
ipfsgate.test-ddns.com {
reverse_proxy 127.0.0.1:8080
log {
output file /var/log/access-ipfsgate.log
}
}
*.test-ddns.com *.eth.test-ddns.com *.dot.test-ddns.com {
handle_path /ipfs/* {
rewrite * /lueluelue/{path}
reverse_proxy 127.0.0.1:8080
}
# this is a web server running on 4567
reverse_proxy 127.0.0.1:4567
log {
output file /var/log/access-wildcard-test-ddns-com.log
}
tls {
dns cloudflare RKY3vu3HYwmQdF9o8MaWYIK1JSM3O0Swk6JbgyTo
}
}
3. The problem I’m having:
I want to:
1.user send request like: https://vitalik.eth.test-ddns.com/ipfs/QmQhCuJqSk9fF58wU58oiaJ1qbZwQ1eQ8mVzNWe7tgLNiD/
2.response should give me a webcontent like:
- and I want to remove this stuff from uri but keep the response body:
4. Error messages and/or full log output:
5. What I already tried:
I have tried: rewrite
, route
, uri replace
, non of these works.