375 questions
0
votes
1
answer
55
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
76
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
votes
1
answer
198
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
39
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 ...
0
votes
0
answers
274
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 ...
0
votes
1
answer
183
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
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
233
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 ...
1
vote
0
answers
321
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
0
answers
310
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
0
answers
221
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 ...
0
votes
1
answer
67
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
0
answers
144
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 ...
2
votes
1
answer
208
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
168
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 ...
0
votes
2
answers
855
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 ...
1
vote
1
answer
653
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 ...
1
vote
0
answers
124
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
...
0
votes
1
answer
704
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* {
...
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 {
...
0
votes
1
answer
66
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
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
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 ...
1
vote
1
answer
358
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 ...
1
vote
1
answer
378
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!
...