1. Caddy version (caddy version
):
# caddy version
v2.4.3 h1:Y1FaV2N4WO3rBqxSYA8UZsZTQdN+PwcoOcAiZTM8C0I=
2. How I run Caddy:
a. System environment:
Fedora CoreOS, systemd, podman
b. Command:
podman-compose up
c. Service/unit/compose file:
version: "3.7"
services:
caddy:
image: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
# […]
volumes:
- caddy_data:/data
- caddy_config:/config
- ${HOME:?HOME variable missing}/caddy-config/Caddyfile:/etc/caddy/Caddyfile:ro,Z
# […]
environment:
# […]
- MAIL_ACME=${MAIL_ACME:?MAIL_ACME variable missing}
labels:
- io.containers.autoupdate=registry
volumes:
caddy_data:
# always persist volume by forcing external creation
# https://docs.docker.com/compose/compose-file/compose-file-v3/#external
external: true
caddy_config:
d. My complete Caddyfile or JSON config:
ip.domainnamehere.tldhere {
tls {$MAIL_ACME}
respond "{http.request.remote.host}"
}
3. The problem I’m having:
Now, under ip.domainnamehere.tldhere
I expect to get a response with the IP of the client that is accessing the server.
However, I get the IP 10.0.2.100
of podman/Docker…
This is not what I expect. What can I do against that?
I know, I guess this is more of a Docker/podman question…
4. Error messages and/or full log output:
N/A
5. What I already tried:
I tried using {http.request.remote}
instead, but again this just returns the port, too.