Email Sync - Self Hosted
Hello, I apologize if this is a dumb request but I just launched Twenty with the 1 line install through Docker on an AWS EC2 instance, I have everything working but I can't get the email sync to work, when I go to settings -> Email -> Connect with Google, I get directed to: https://websitedomain.com/verify?errorMessage=Google+apis+auth+is+not+enabled
I have the following added to the .env:
IS_SIGN_UP_DISABLED=true
MESSAGING_PROVIDER_GMAIL_ENABLED=true
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=CommentedoutforSecurity
AUTH_GOOGLE_CLIENT_SECRET=CommentedoutforSecurity
AUTH_GOOGLE_APIS_CALLBACK_URL=https://CommentedoutforSecurity.com/auth/google-apis/get-access-token
AUTH_GOOGLE_CALLBACK_URL=https://CommentedoutforSecurity.com/auth/google/
I reset the docker then added the jobs to the worker docker with no success.
3 Replies
Rebuilding this on a new domain and will bump once rebuilt
I had this issue and it needed to pass the .env to docker compose.
Should pass "all" envvars to the containers server and worker. Once I did that, it worked.
Drove me crazy for a few days
Indeed in docker compose file you should add, both in worker and server container, following from env vars
AUTH_GOOGLE_CALLBACK_URL: ${AUTH_GOOGLE_CALLBACK_URL}
AUTH_GOOGLE_APIS_CALLBACK_URL: ${AUTH_GOOGLE_APIS_CALLBACK_URL}
AUTH_GOOGLE_CLIENT_ID: ${AUTH_GOOGLE_CLIENT_ID}
AUTH_GOOGLE_CLIENT_SECRET: ${AUTH_GOOGLE_CLIENT_SECRET}
AUTH_GOOGLE_ENABLED: ${AUTH_GOOGLE_ENABLED}
MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED}
CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}