Skip to main content
This page briefly explains how to use Caddy to reverse proxy SocialSyncs. A configuration file example is below;

Example Caddyfile

socialsyncs.example.lan {
        reverse_proxy * localhost:5000
        tls internal
}
In this example, we have a single port for SocialSyncs, port 5000, which is the internal proxy built into the Docker container images. The tls internal directive is used to enable internal TLS for secure communication. You will need to install the certificate into your browser with this configuration. If you are hosting on a public domain, Caddy allows you to use LetsEncrypt for automatic certificate management. For more information, refer to the Caddy documentation.

SocialSyncs configuration

To ensure that SocialSyncs works correctly behind a reverse proxy, you may need to adjust its configuration in your .env file / environment variables. The following variables should be set to the correct values:
MAIN_URL="https://socialsyncs.example.lan"
FRONTEND_URL="https://socialsyncs.example.lan"
NEXT_PUBLIC_BACKEND_URL="https://socialsyncs.example.lan/api"