Traefik’s ForwardAuth middleware. If the authentication server replies with a 2xx status code, access is allowed, and the initial request is executed. If not, the response from the authentication server is sent back.
The following request headers are provided to the authentication server:
"https"
, otherwise it’s "http"
.PHP-FPM may run on different user than Ferron, so you might need to set permissions for the PHP-FPM user.
If you are using PHP-FPM only for Ferron, you can set the listen.owner
and listen.group
properties to the Ferron user in the PHP-FPM pool configuration file (e.g. /etc/php/8.2/fpm/pool.d/www.conf
).
If you are using the fproxy module, then hosts on the local network and local host are also accessible from the proxy. You may block these using a firewall, if you don’t want these hosts to be accessible from the proxy.
This module uses a Token Bucket algorithm. The rate limitation is on per-IP address basis.
If you’re using this module with static file serving, it’s recommended to disable static file compression using compressed #false
, otherwise the replacement wouldn’t work.
The reverse proxy functionality is enabled when proxyTo or secureProxyTo configuration property is specified.
The following request headers are provided to the backend server:
"https"
, otherwise it’s "http"
.