How to use Reverse Proxy mode
Introduction
FASTPANEL® supports Reverse Proxy mode, allowing you to define servers (e.g., web servers, application servers) to which incoming requests can be proxied.
To choose Reverse Proxy mode, open "Settings" menu in the Site card and select "Reverse proxy" from the "Backend (PHP, Reverse proxy, etc.)" menu.
Reverse Proxy types
Both a host and a Unix socket can be used.
Host
When using the Host type as the address, the URL or IP address must be specified together with the port.
Examples of correct Hosts:
http://127.0.0.1:3000
https://localhost:443
Using the https:// protocol together with unix:// or http:// is not possible.
Unix
When using the Unix type as the address, the path to the Unix socket must be specified.
The prefix unix:/
is not required.
For example /tmp/my_socket
is a correct Unix socket address.
Multiple addresses
When specifying multiple addresses in the upstream list, requests will be distributed between the them using a round-robin balancing method.