Local IP like domain in Caddyfile

1. Caddy version (caddy version):

v2.2.1

2. How I run Caddy:

I use Caddyfile with domain localhost

a. System environment:

docker-compose

d. My complete Caddyfile or JSON config:


localhost

redir /backend /backend/
handle_path /backend/* {
    reverse_proxy app1:8080
}


handle_path /* {
    reverse_proxy  frontend:8080
}

3. The problem I’m having:

I want change localhost with my localIP (192.168.x.x)

4. Error messages and/or full log output:

FROM chrome: ERR_SSL_PROTOCOL_ERROR
FROM firefox: SSL_ERROR_INTERNAL_ERROR_ALERT

5. What I already tried:

If i use in caddyfile localhost I don’t have error.
If i change localhost with 192.168.x.x i have this error

What are the steps we need to follow to experience this?

I see you’re using docker-compose. Can you also please share your docker-compose.yml? It helps to see how the Docker network is bound too, amongst others.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.