14 lines
506 B
Caddyfile
14 lines
506 B
Caddyfile
# Caddy in front of a site: /chat/ answered by the JumPHP embed kit (tools/embed/jumphp-embed.php, docs/embed.md) through PHP-FPM.
|
|
# The settings come from the environment of PHP-FPM (JUMPHP_EMBED_SERVER, _APP, _SITE, _SECRET, _BASE, _CACHE): clear_env = no in its pool.
|
|
example.com {
|
|
redir /chat /chat/ 301
|
|
handle /chat/* {
|
|
root * /srv/jumphp-embed
|
|
rewrite * /jumphp-embed.php
|
|
php_fastcgi unix//run/php/php-fpm.sock {
|
|
flush_interval -1
|
|
read_timeout 300s
|
|
}
|
|
}
|
|
# ... the rest of the site
|
|
}
|