TwentyT
Twenty6mo ago
a1

Traefik Configuration Problem

For everyone having the traefik problem with can't reach server error. The documents don't really explain it good enough. The SERVER_URL is not the server but kind of the domain you are mapping on in traefik and the URLs also need to be the same for the frontend with FRONT_BASE_URL otherwise the SSL will work however the app won't run.

Here is the traefik configuration:

router-twenty:
entryPoints:
- web
- websecure
rule: "Host(22.example.com)" <-- your domain here
service: service-twenty
tls:
certResolver: default

service-twenty:
loadBalancer:
servers:
- url: "http://192.168.1.123:3000" <-- where it is on your network
passHostHeader: false


and within the .env file where the docker-compose.yml file is:

------------------------------------------
IMPORTANT - DOMAIN SHOULD BE SAME AS ABOVE
------------------------------------------

SERVER_URL=https://22.example.com
FRONT_BASE_URL=https://22.example.com

This will set it up to work perfectly.
Was this page helpful?