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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

Where would Caddy2 fit into our server (possibly AWS) architecture chain for enabling custom domains and subdomains?

I'm in the process of re-architecting our web application so that it's more scalable. One of the requirements is to allow customers to point custom domains AND subdomains at our site, which our ...
0 votes
0 answers
28 views

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 ...
  • 325
1 vote
2 answers
384 views

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,...
-1 votes
1 answer
337 views

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=...
-1 votes
1 answer
345 views

~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 ...
  • 1
0 votes
1 answer
311 views

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:...
2 votes
1 answer
3k views

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 ...
1 vote
0 answers
150 views

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 ...
  • 151
0 votes
0 answers
546 views

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 ...
3 votes
1 answer
5k views

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 ...
0 votes
2 answers
253 views

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 ...
  • 101
1 vote
2 answers
1k views

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....
3 votes
2 answers
2k views

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 ...