Questions tagged [caddy]

Caddy, sometimes clarified as the Caddy web server, is an open source, HTTP/2-enabled web server written in Go. It uses the Go standard library for its HTTP functionality and supports HTTPS out of the box.

12 questions
3
votes
1 answer

How to Maintain All Headers Through Reverse Proxy with Caddy

I am using Caddy as a reverse proxy so that I only need to have 2 ports open in my gateway (one for http and one for https). I would prefer to use 80 and 443, but my UniFi USG (Gateway) interferes with 443 and breaks SSL. If I choose another port…
Lance McCarthy
  • 133
  • 1
  • 5
2
votes
2 answers

Which matcher does Caddy pick when there is a conflict?

Directives in an Caddyfile can have "matchers" that limit them to specific requests. This lets Caddy 2 serve different content for different paths, but what happens when multiple directives match the same request? If I want to serve a mostly-static…
1
vote
2 answers

Caddy reverse proxy curl works internally, but externally returns content-length: 0

Background and Problem I'm trying to set up Caddy as a reverse proxy between two other web applications and a static file server (all on one machine). When I curl the internal IP, it works as expected, but when I try to curl the external IP, it…
claypooj
  • 23
  • 4
1
vote
1 answer

Caddy always tries to bind to port 80, regardless of the address in Caddyfile

Caddy v2.2.1 doesn't seem to respect the port of a given address in this Caddyfile: myfinedomain.com:9999 { respond "Nothing to see here. Srsly." } Starting up caddy simply results in the following error (taken from the…
Windowlicker
  • 190
  • 9
1
vote
0 answers

using custom domain in caddy gives tls error

I have the following caddy file - localhost { respond "Hello World !" } auth.demo.app.com { respond "Hello auth app" } When I do a sudo caddy reload I get the following error - 2021/01/23 08:05:07.347 ERROR tls job failed …
murtaza52
  • 151
  • 9
1
vote
2 answers

Self host gitlab using caddy

I'm trying to install and host gitlab, but it requires and pulls in Nginx. Which would be fine, except I use Caddy and Caddy doesn't play well with Nginx and has to be disabled for Nginx to even start. I like Caddy a lot, especially the built in…
unixandria
  • 171
  • 11
0
votes
0 answers

Caddy Local Authority - ECC Intermediate error: digital signature not valid. Is my machine?

I'm using caddy version 2.5.2 inside a docker container. As soon as I open https://localhost I get the error about Caddy local authority - ECC Intermediate - Digital signature not valid: My Caddy configuration is pretty simple - nothing special…
gremo
  • 325
  • 4
  • 20
0
votes
1 answer

i/o timeout when trying to renew letsencrypt certificate

I am running a webserver using caddy 1, which is supposed to renew https certificates automatically using letsencrypt but is having trouble doing so. In the server's logs I see this: 2022/01/14 04:03:47 [ERROR] Making new certificate manager: get…
0
votes
0 answers

Caddy "CSR doesn't contain a SAN short enough to fit in CN"

The Common Name (CN) in a TLS certificate is documented to have a limit of 64 chars. The trick when issuing a cert for a so long subdomain is to set the CN to something else (shorter) and have the certificate to certify multiple domains, as the…
Xavi Montero
  • 295
  • 3
  • 16
0
votes
2 answers

Device -> device traffic being blocked inside of network

I am running into a weird issue, which I have been trying to understand and fix for a few hours. I have three main machines, which are setup this way: M1: Raspberry pi 3 (raspbian lite), running caddy as a reverse proxy/static web server. Caddy…
ruben1691
  • 101
  • 1
-1
votes
1 answer

Can't start Mercure Hub on Debian 11 with supervisord, outh of Docker image

I'm trying to exec Mercure hub from supervisor, but is not possible for me. Mercure is in the same machine of webserver with the SSL virtualhost for pami54.local domain. [program:mercure] environment=JWT_KEY="m3rcu353cr37pa55pra53DEV";…
Francisco
  • 95
  • 4
-1
votes
1 answer

~90% error rate with Stripe webhooks, unpredictable response. Server issue?

I'm setting up Stripe webhooks for the first time. I've made hundreds of test requests and I've had an error rate of around 90%. It's unpredictable as to why the failures occur. The failure responses on the Stripe dashboard are either: Timed out…
Joseph
  • 1