Questions tagged [caddy]

Caddy is a configurable web server written in Go that supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is a configurable web server created by Matt Holt. It's written in and available for Windows, Mac, Linux, and BSD.

Caddy became famous, among other things, for being the first web server to support automatic provisioning of SSL certificates via Let's Encrypt.

It also supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is highly configurable using a configuration file called Caddyfile.

338 questions
8
votes
1 answer

Caddy not forwarding proxy

I have a site set up with caddy that serves a react app. But the proxy part of it doesn't seem to be forwarding requests to the other docker container. It still shows me the react page on example.com/api. My caddyfile: example.com { gzip …
cclloyd
  • 8,171
  • 16
  • 57
  • 104
6
votes
4 answers

How to configure Caddy server for react-router

What kind of Caddyfile configuration do I need to serve a react app (created with create-react-app) with react-router correctly? Basically, domain.com/app/ (this is the root of the app) should redirect to index.html, domain.com/app/sub should…
nojs
  • 63
  • 1
  • 3
6
votes
2 answers

How can I enable Caddy plugins in NixOS?

I've just started playing with NixOS, and have so far managed to edit /etc/nixos/configuration.nix in my NixOS 18.09 VM to have PHP-FPM and the Caddy webserver enabled. { config, pkgs, ... }: { imports = […
David Oliver
  • 2,424
  • 1
  • 24
  • 37
6
votes
1 answer

Fix with ulimit -n 8192

Running caddy on a linux machine, and I receive the following error: WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with "ulimit -n 8192" Ok, great. But where do I fix…
Chris
  • 28,822
  • 27
  • 83
  • 158
5
votes
1 answer

Debugging curl SSL error 14094438 with Caddy

Caddy thinks everything is fine: {"level":"info","ts":...,"logger":"tls.issuance.acme.acme_client","msg":"validations succeeded; finalizing…
knite
  • 6,033
  • 6
  • 38
  • 54
5
votes
1 answer

Django + Caddy = CSRF protection issues

I deployed a Django 4 app with Daphne (ASGI) in a docker container. I use Caddy as a reverse proxy in front. It works, except I can't fill in any form because the CSRF protection kicks in. So no admin login, for example. I can currently access the…
aspyct
  • 3,625
  • 7
  • 36
  • 61
5
votes
3 answers

How to use caddy as reverse proxy for local domain with https

Is it possible to use caddy for local development where you have https://mysite.loc and use Caddyfile as reverse proxy to your services running on localhost? My hosts file so I have local mysite.loc domain 127.0.0.1 mysite.loc mysite.loc { …
Hnus
  • 912
  • 2
  • 9
  • 24
5
votes
3 answers

Can I setup SSL on an AWS provided ALB subdomain without owning a domain?

I have following setup at AWS ECS: Container with Caddy web-server at 80 port that serves static files and performs proxying of /api/* requests to backend Container with backend at 8000 port EC2 instance at ECS ALB at subdomain …
5
votes
1 answer

WSL2 Caddy Reverse Proxy In Docker

I have a Caddy server running in Docker talking to a Node.JS server. This setup currently works on MacOS, but does not work on WSL2. I assume the issue has something to do with the fact that we're using http://host.docker.internal:3000 as the proxy…
5
votes
1 answer

Caddy: How to add multiple reverse proxies via API and not using Caddyfile?

I can have a server with multiple domains using such a Caddyfile (+ https with letsencrypt): site1.com { reverse_proxy localhost:3001 } site2.com { reverse_proxy localhost:3002 } site3.com { reverse_proxy localhost:3003 } But I want to run…
Max Block
  • 1,134
  • 3
  • 16
  • 23
5
votes
1 answer

docker-compose thinks file is a directory

Any ideas? This service was starting before but now I get this '/etc/Caddyfile: is a directory' message and the service Exits. $ docker-compose -f docker-compose-linux.yml up caddy Starting server_applications_1 ... done server_workspace_1 is…
Simon P
  • 337
  • 3
  • 8
5
votes
1 answer

automate letsencrypt on a kubernetes app with lots of domains

I have a node app that loads its data based on domain name. domains are configured with a CNAME like app.service.com (which is the node app). The Node app sees the request domain and sends a request to API to get app data. for example: domain.com…
Hadi Farnoud
  • 131
  • 1
  • 15
5
votes
1 answer

WebSocket handshake Error with caddy proxy

I'm trying to initiate a websocket connection between chrome browser client and server. Overview of my implementation : There are set of different up and running projects. The main project is the hub to all other projects and it handle all http…
csath
  • 1,248
  • 11
  • 25
4
votes
1 answer

Caddy reverse_proxy with websocket JSON config

I have this simple caddy JSON config to proxy request from https://localhost to my localhost server running on port 8080. That's working fine. { "apps": { "http": { "servers": { "localhost": { …
Stephane
  • 11,056
  • 9
  • 41
  • 51
4
votes
1 answer

Caddy not rendering assets

I have a rails application that is not rendering assets. It was previously working fine. When I added linked files it not only uploaded the files I specified but also precompiled assets. Even after clobbering all assets and recompiling it fails to…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
1
2
3
22 23