375 questions
0
votes
1
answer
59
views
How to translate caddy to ingress nginx controller
I'm having this config from Caddy and I want to migrate it to ingress nginx controller
@restrictAccess {
path /path1/loc1/*
path /path2/loc3/*
}
route @restrictAccess {
...
1
vote
0
answers
113
views
self-host plane : Error: adapting config using caddyfile: /etc/caddy/Caddyfile:3: unrecognized global option: reverse_proxy
I am trying to self-host plane on my pc, so I git clone the following repo:
https://github.com/makeplane/plane.git
and try to run docker compose up:
docker compose up -d
WARN[0000] Found orphan ...
1
vote
0
answers
81
views
Is there a better way to remove trailing slashes in Caddy 2 (FrankenPHP) config?
The problem:
I need to remove trailing slashes from an URLs, but preserve URL query if it exists.
Examples:
/support/ => /support
/support/?id=123 => /support?id=123
My current working config ...
1
vote
0
answers
183
views
Caddy reverse proxy configuration without ACME, with strict SNI
I want to use Caddy as a reverse proxy for my system. The system contains a backend running on localhost:8080 to which all traffic is redirected. The proxy listens for HTTP traffic on :80 and for ...
-1
votes
1
answer
225
views
How to reverse proxy Websocket via Caddy using HTTPS outside and HTTP inside?
Reverse proxying https://example.net to http://localhost:8080 works fine with Caddy reverse_proxy.
Reverse proxying ws://example.net to ws://localhost:8080 works also fine with Caddy reverse proxy.
...
0
votes
0
answers
80
views
Support die/exit on FrankenPHP(Caddy) worker mode
My PHP app runs on a Caddy webserver, over a FrankenPHP container (Dunglas image). It runs in worker mode.
Unfortunately, it seems that workers prevent abrupted interruptions of the process. So is not ...
0
votes
0
answers
41
views
Localization in laravel with mcamara/laravel-localization while on FrankenPHP
Can't seem to get internationalized routes to work when running on FrankenPHP.
Tried clearing the cache, restarting the server after rebuilding routes. But still, as soon I try to access ...
1
vote
0
answers
340
views
n8n in Docker behind Caddy reverse proxy adds port 5678 to webhook URLs
I'm running n8n inside Docker on a virtual server and using Caddy as a reverse proxy to expose it over HTTPS.
The setup works fine — I can access the n8n UI via https://example.com (served on port 443)...
0
votes
0
answers
287
views
Caddy can't get TLS certificate under rootful podman
I'm trying to get caddy to run as a reverse proxy for some other services. To do this, I'm running it in a podman-compose configuration as root. However, when running podman-compose up as root, it ...
1
vote
0
answers
48
views
Caddy php_fastcgi give no result
Im currently using nginx as a reverse proxy,
And i wanted to try Caddy to do the same !
To explain 1 have 2 services : 1php and 1go
The php is a backend that you use by calling /api/<.....>
The ...
0
votes
1
answer
189
views
Why does this simple Dockerfile fail for Caddy container
localhost {
root * /testDir
file_server
reverse_proxy /api/* localhost:3000
}
// And dockerfile
FROM caddy:2.7.6-alpine
EXPOSE 80
EXPOSE 443
COPY Caddyfile /etc/caddy/...
0
votes
0
answers
50
views
Socket.io with pm2 cluster mode
I am running a node app via pm2 using cluster mode (-i 4) and this same node app uses socket.io and since running in cluster mode, I have been not been able to connect to the socket.
I have followed ...
0
votes
0
answers
43
views
Serving static assets on local node microservices with caddy
I have a couple of React applications running locally with WDS on different ports.
landing - running on port 3000 (http://localhost:3000)
account - running on port 3100 (http://localhost:3100)
help - ...
0
votes
1
answer
230
views
AWS API Gateway cache "giving x-cache: Miss from cloudfront" while cache cluster and ttl is enabled on required get method
I have setup an api gateway for a suggestions api hosted on aws ecs fargate behind an application load balancer. i have enabled cache for api gateway stage and respective get method with TTL set to ...
0
votes
1
answer
235
views
Configuring Socket.io and Caddy
I am trying to set up a socket server between my node backend and React frontend and am using Caddy as my reverse proxy. I am having trouble getting a connection once Caddy was introduced into the ...
0
votes
0
answers
178
views
Caddy + Keycloak blank page in redirect login
I'm working on a Next.js 14 app with Next-Auth configured to use Keycloak as the provider. The entire setup is running in containers managed via Portainer, with the production environment behind a ...
1
vote
0
answers
327
views
Caddy not serving html index
I am trying to use caddy to serve some static files for a local development API
my compose file:
services:
caddy:
container_name: caddy_api
image: caddy
restart: unless-stopped
ports:...
0
votes
1
answer
528
views
NS_ERROR_REDIRECT_LOOP with caddy and nginx in docker container
I am strugling with my Configuration for a while now and i always get the Redirect Loop error in Browser.
I am running Caddy in docker and an Angular Application with the nginx image also in Docker.
...
0
votes
0
answers
313
views
How to access Laravel Octane on default ports with Frankenphp and Docker
I'm struggling with how to set up docker-compose (or dockerfile) to work with Laravel Octane by default.
I'm using basic things from https://frankenphp.dev/docs/docker/.
I also changed Caddyfile to ...
1
vote
1
answer
707
views
Trying to redirect api calls to backend with Caddy reverse proxy but getting error 405
I have a backend (spring) and frontend (react) deployed in an EC2 instance, backend is running on port 8080. The frontend uses axios with a baseUrl:
baseURL: "https://website.com/"
The idea ...
1
vote
0
answers
226
views
How to use Caddy as reverse proxy for Redis?
I am trying to run Redis (in the Docker container) behind a reverse proxy using Caddy.
Therefore I have configured the Caddy server like this:
example.com {
reverse_proxy redis:6379
}
mapping the ...
1
vote
0
answers
540
views
CORS issue error on Ruby on Rails with Coolify and Caddy as Proxy
I have hosted React Frontend app as a client on Coolify and hosted a Rails Backend api app as a server with PostgresSQL and Redis on Coolify as well. It's working fine locally but not working on ...
0
votes
1
answer
74
views
Nginx - How to get the Real Client ISP instead of Reverse Proxy ISP
I am having a backend webserver which works based on Nginx is being hidden behind a Reverse Proxy. I have managed to get the IP and Country of the Client but the issue is with the ISP. I need to know ...
0
votes
1
answer
915
views
How to set specific headers for a file using caddy
I'm trying to host game build files using caddy. I need those files to have specific headers, otherwise the frontend won't know how to handle them and the game won't play.
Here's my Caddyfile
racing.&...
0
votes
0
answers
145
views
Caddy for https on top of working django asgi app supposedly breaks websocket communication
I have a working django asgi application that uses channels for websocket communication with daphne and redis, and is running in a dockerized setup. To enable the secure https protocol, I tried going ...
1
vote
0
answers
352
views
FrankenPHP / Caddy under Docker - unable to use cURL with internal name
I have a Symfony 7.1 application that runs API Platform 4. This app (core) is used for a bunch of other Dockerised applications to write/read data to the database and run some other business logic.
It'...
2
votes
1
answer
211
views
Caddy Container overwriting files in the Frontend Container
I have a docker compose file with 4 containers. Caddy , Watchtower and Frontend and Backend Container. The front end is in React + vite. The backend is Node.js and Express.
I have a shared volume ...
0
votes
1
answer
79
views
Can't run api platform with local database
API Platform version(s) affected: 3.2
I try to run api platform on production without database service on docker, because I want to use a local database. I start the project with the command provided ...
0
votes
1
answer
169
views
traefik + HTTPS + Caddy > Internal Server Error
I'm looking to upgrade our current laravel app, by using FrankenPHP to give it a performance boost. But I'm having issues when I try to deploy to our staging environment, so I'm trying to clone that ...
1
vote
1
answer
654
views
ECONNRESET / 502 Bad Gateway when using Nuxt 3 behind a reverse proxy
I use a Caddy reverse proxy for my Nuxt 3 application. When loading the site in development mode, hundreds and hundreds of files will be loaded because Vite uses native ESM to provide a short warm up ...
0
votes
2
answers
867
views
.NET 8 api with Caddy reverse proxy not working for SSL
I'm trying to set up SSL for a domain that is pointing to a simple api. I'm running .net 8 and have a Caddy server set up as a reverse proxy, all set up using docker compose. I initially had nginx ...
0
votes
1
answer
1k
views
caddy running on a local docker is getting the local IP instead of WAN IP when loading checkip.amazonaws.com
Those couple of services give you your current WAN IP:
I Can Haz => http://icanhazip.com/
AWS => http://checkip.amazonaws.com/
Loading them on the browser gives you your WAN IP like this:
This ...
1
vote
1
answer
666
views
caddy not recognizing env var
I'm using caddy server in docker to reverse proxy to my nodejs servers. I'm passing UPSTREAMS env var as documented Here. But the UPSTREAMS are not recognized by caddy. reverse_proxy works fine if I ...
0
votes
1
answer
646
views
Caddy stop request execution after 60 seconds
Is there a timeout setting in a Caddy that will stop request execution after 60 seconds?
Currently, I have a timeout set on the client side that is equal to 70 seconds, so before the client side cut-...
1
vote
0
answers
125
views
Websocket not working and unclear if it is caddy, nodjes or the index.html
I have Caddy as my file server, with my Caddyfile:
foobar.nl {
redir https://www.{host}{uri}
}
www.foobar.nl {
file_server browse
reverse_proxy /wss59fps localhost:9090
...
2
votes
0
answers
359
views
Frankenphp continuously sending requests to /
I'm trying Frankenphp with the Symfony app for the first time. Im using dunglas/frankenphp docker image as a base and extending it (shortened version of Dockerfile)
FROM dunglas/frankenphp:1.2-php8.2-...
0
votes
1
answer
705
views
How do I serve a React.js Vite app hosted on an Azure container instance over a custom route, where routing is managed by Caddy?
I want to serve my React app from a different route, so that I can keep all of my servers on the same container group.
My Caddyfile looks like this:
fqdn {
handle_path /backend* {
...
1
vote
1
answer
323
views
Caddy subdomain issue, `ERR_SSL_VERSION_OR_CIPHER_MISMATCH`
First time using Caddy. I have a VPS (Hetzner if that's relevant) running Docker containers to host my projects on. So far there is only one API hosted there, and Caddy to handle HTTPS and act as a ...
0
votes
1
answer
195
views
Caddy PHP fastcgi not giving server script_name when handle_path is used
Caddy (2.8.4) is hosting a PHP application through FastCGI (PHP-FPM) but for some reason the $_SERVER['SCRIPT_NAME'] does not contain the full path when I use the caddy handle_path config.
:80 {
...
1
vote
0
answers
192
views
Shopware 6.6 mixed content error when using reverse proxy
My Shopware runs on port 8080 using the HTTP protocol. Now I am using Caddy 2 as a reverse proxy. Both store and admin resources can be accessed normally, but I encounter a Mixed Content error when ...
0
votes
1
answer
67
views
Can Caddy's data directory be shared among multiple replicas when doing Let's Encrypt?
I was wondering if the data folder for Caddy would work with multiple replicas of Caddy trying to do TLS verification with Lets Encrypt.
This was a limitation on Traefik unless you opt for the ...
0
votes
1
answer
334
views
How to make Caddy server keep the same subpath even if web app redirects to root path?
I have basic setup:
Caddy server
Some SPA web app
A static website is hosted under /subpath/spa, but it keeps navigating to a /page without subpath part. How to keep teh web app it served under /...
0
votes
2
answers
2k
views
TLS handshake fails with a subdomain of a let's-encrypt wildcard-domain certificate
I've a Raspberry Pi with a setup including PiHole and caddy.
PiHole serves as local DNS server for the network, and caddy is used as reverse proxy on a generic corresponding service.
Example:
(DNS ...
1
vote
0
answers
80
views
Where do I put my PHP files on my EC2 Ubuntu server?
I've been working on my first full stack web dev project for a little while now. To summarize it, I have a small Vite app with a form that can take in data from a user and then use a php file to ...
1
vote
2
answers
1k
views
Shopware 6 mixed content error when using reverse proxy
The problem I'm having:
I get a mixed content error when adding a reverse proxy before the Docker container running a Caddy server, PHP, MySQL and myPhpAdmin in another container.
Here is my setup and ...
2
votes
1
answer
301
views
Caddy Server Next.js 13 app static image file not serving. showing ERR_SSL_WRONG_VERSION_NUMBER
I'm using next.js 13 app route.
Caddy file configuration:
my-domain.com {
reverse_proxy http://localhost:3000
}
Next.js app log:
cause: [Error: 0068BFE9207F0000:error:0A00010B:SSL routines:...
1
vote
1
answer
359
views
NextJS, Strapi, Auth0 on localhost: How can I configure this to work without ERR_SSL_PROTOCOL_ERROR
I am developing a web site with the frontend using NextJS, the backend is Strapi and I'd like to use Auth0 as the identity provider. I have configured Strapi to use Auth0 and this appears to be ...
2
votes
1
answer
89
views
Dynamic tar/archive creation in Mojolicious
I have a directory of uploaded files, and I want to the user to download all files as an archive/tar. This is what I have implemented so far:
get '/admin/downloadmedia' => sub {
my $c = shift;
...
1
vote
1
answer
387
views
Caddy, MariaDB, PHP running as Docker containers on a virtual server (AlmaLinux 9)
I want to set up Cadddy,
MariaDB and PHP 8.2 with FPM
for hosting a Shopware 6 production installation on a virtual server running AlmaLinux 9.I 'm very new to this so any tips are highly appreciated!
...
1
vote
1
answer
218
views
Configuring rewrite in Caddy web server does not work
I am trying to configure a rewrite rule in Caddy web server:
From: /data/id/name.html
To: /data.py?id=id&name=name
I have tried different approaches:
rewrite /data/([^/]+)/([^/]+)\.html /data.py?...