Thanks for making Caddy!
1. The problem I’m having:
Upgrade services running on my local machine to be accessible only through HTTPS on my local network. Host is running these services through HTTP.
2. Error messages and/or full log output:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
2.10.2-r1
4. How I installed and ran Caddy:
I installed www-servers/caddy through emerge. I’m on Gentoo.
Running caddy as a non-root user using:
caddy run --config ~/.config/caddy/Caddyfile
OR
caddy start --config ~/.config/caddy/Caddyfile
a. System environment:
My workstation is using OpenRC
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
Ok. Here are the following configurations I’ve tried, followed by the errors:
localhost {
reverse_proxy localhost:1738 localhost:1740
}
localhost
reverse_proxy
Above two leads to Error code: SSL_ERROR_RX_RECORD_TOO_LONG
localhost:1738 localhost:1740
reverse_proxy
This one leads to Error: sending configuration to instance: caddy responded with error: HTTP 400: {“error”:“loading config: loading new config: http app module: start: listening on :1738: listen tcp :1738: bind: address already in use”}
For the following: Services are available though HTTPS, AND accessible through their corresponding HTTP ports. I won’t consider it the correct solution.
localhost:1111 {
reverse_proxy localhost:1738
}
localhost:1112 {
reverse_proxy localhost:1740
}
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.