T
Twenty2mo ago
manstfu

redirect issues

im using this .env config
SERVER_URL=https://crm.website.com
IS_MULTIWORKSPACE_ENABLED=true
DEFAULT_SUBDOMAIN=crm
SERVER_URL=https://crm.website.com
IS_MULTIWORKSPACE_ENABLED=true
DEFAULT_SUBDOMAIN=crm
but i get redirected to http://crm.crm.website.com/welcome workspace becoming http://workspace1.crm.crm.website.com if i change SERVER_URL to https://crm.website.com/ with ending slash, i dont get redirect but it can't connect to db
8 Replies
manstfu
manstfuOP2mo ago
🤟
Prastoin
Prastoin2mo ago
Hello @manstfu unless I'm mistaken you shouldn't add a trailing slash at the end Could you please elaborate on the initial rediect issue
manstfu
manstfuOP2mo ago
yea but without it i get redirect to http://crm.crm.website.com/welcome
Prastoin
Prastoin2mo ago
What twenty version are you hosting How have you setup your custom domain
manstfu
manstfuOP2mo ago
somehow it create its own subdomain on SERVER_URL it can't run on SERVER_URL standalone for example if you use SERVER_URL=https://website.com and DEFAULT_SUBDOMAIN=crm after you need to access https://website.com to get redirected to https://crm.website.com because it create its own subdomain there should be a option to skip DEFAULT_SUBDOMAIN setting, to deploy it by its own on SERVER_URL currently it default it to app last version, just installed it using reverse proxy from cloudpanel wait, it works now somehow brave-almond-peacock.crm.website.com
Prastoin
Prastoin2mo ago
Yes it creates a default workspace random subdomain You can configure your custom one from the settings
manstfu
manstfuOP2mo ago
yea but yesterday url was brave-almond-peacock.crm.crm.website.com
Prastoin
Prastoin2mo ago
Looks like you re-created a workspace

Did you find this page helpful?