Can / should I disable Caddy? #1008
-
This is probably a stupid question but if I have TLS termination and a proxy already, is there a need to have Caddy? Couldn't my proxy talk to franken directly? I'm sure I'm missing something here, can someone please ELI5? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can disable TLS on the frankenphp side, and do your TLS termination elsewhere. Frankenphp is shipped built into caddy, as a caddy module, but with a bit of work, you can strip out all "webserver" functionality by reducing the caddy config down to "php only". If you want some help with that, let us know. In any case, you need some kind of server (called a SAPI) to serve php code, such as Apache, php-fpm. Frankenphp replaces those older SAPIs with something more modern, but is more comparable to Apache than fpm, but just as (if not more) performant as a well tuned fpm. Hopefully that answers your question? |
Beta Was this translation helpful? Give feedback.
To disable TLS, the most ideomatic thing to do is to set
SERVER_NAME=:8080
. Note the colon then the port number. When set to a single port (like this), Caddy serves http-only.