You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default snippet used for configuration. Possible values: reverse-proxy, php-fpm, html or false (to disable)
CADDY_DOMAIN_EXTRA_CONFIG
null
Custom extra config for domain scope. Use the syntax {env.XXX} instead of {$XXX} for environment variables. You can use snippets defined in Caddyfile (see Snippet section). Example: header x-domain-from "{env.DOMAIN}"
CADDY_GLOBAL_EXTRA_CONFIG
null
Custom extra global configuration. Use the syntax {env.XXX} instead of {$XXX} for environment variables. You can use snippets defined in Caddyfile (see Snippet section). Tip: To provide multiline values in docker-compose.yml, use | (not > as it doesn't add \n at line ends). Example: CADDY_GLOBAL_EXTRA_CONFIG: | localhost:80 { respond "Hello, world!" }
TLS_PROVIDER
tls-ovh
Your TLS provider. Possible values: tls-ovh, tls-azure, tls-cloudflare or false (to disable)
WHITELIST_IPS
0.0.0.0/0
List of IP addresses or IP ranges to whitelist (space-separated). Returns 403 for requests not in scope. Examples: 127.0.0.1 (single IP) or 127.0.0.0/24 (IP range). Multiple values: 127.0.0.1 10.0.0.0/24
Reverse Proxy Configuration
Variable
Default Value
Description
BACKEND_ENDPOINT
nginx:80
Endpoint to which requests are forwarded, such as http://foo.bar:8000 or wordpress:80
HTML Server Configuration
Variable
Default Value
Description
WEBROOT
/var/www/html
Default web root for the web server
PHP-FPM Configuration
Variable
Default Value
Description
WEBROOT
/var/www/html
Default web root for the web server
PHP_FASTCGI
php:9000
PHP FastCGI backend address, such as unix//run/php/php8.2-fpm.sock (for socket) or my-phpfpm-container:9000 (for container)
reverse-proxy : use reverse_proxy directive to provide a simple reverse proxy to a backend wich defined with BACKEND_ENDPOINT environnement variable (see configuration)
php-fpm : provide a default configuration for php (see configuration)
html : simple html/css/js server
whitelist-ip : use directive not remote_ip to block all request that is not whitelisted client. First param is trusted IPs
About
Caddy 2 preconfigured docker container with tls modules for azure/ovh/cloudflare provider