T
Twentyβ€’6mo ago
windarrow_

.env for the server url?

I get this error: index-_weD9yLX.js:990 Mixed Content: The page at 'https://mydomain.pt/' was loaded over HTTPS, but requested an insecure resource 'http://192.168.1.157:3000/graphql'. This request has been blocked; the content must be served over HTTPS. But I already changed the envs for https://mydomain.pt why is it trying to connect with http://192.168.1.157 ?
28 Replies
Brendan
Brendanβ€’6mo ago
Did you also change the backendurl(REACT_APP_SERVER_BASE_URL) in the frontend env?
windarrow_
windarrow_OPβ€’6mo ago
Yeah that was it! Should have been in the docs....
windarrow_
windarrow_OPβ€’6mo ago
My bad! I tought the frontend was depecrated and now it was just the server xD Can u help with another thing, was envs do I need to set up calendar ? I'm using: MESSAGING_PROVIDER_GMAIL_ENABLED true CALENDAR_PROVIDER_GOOGLE_ENABLED true AUTH_GOOGLE_APIS_CALLBACK_URL https://mydomain.pt/auth/google-apis/get-access-token
Brendan
Brendanβ€’6mo ago
Do you have a running worker? Twenty offers integrations with Gmail and Google Calendar. To enable these features, you need to connect to register the following recurring jobs: from your worker container yarn command:prod cron:messaging:messages-import yarn command:prod cron:messaging:message-list-fetch
windarrow_
windarrow_OPβ€’6mo ago
I ran this comands on my worker pod after or before connecting my google account ? whats best?
Brendan
Brendanβ€’6mo ago
they are recurrent jobs so after connecting i think
windarrow_
windarrow_OPβ€’6mo ago
maybe I'm running them in the wrong folder?
windarrow_
windarrow_OPβ€’6mo ago
No description
windarrow_
windarrow_OPβ€’6mo ago
a bunch of green line xD looks good I would assume
No description
Brendan
Brendanβ€’6mo ago
looks ok
windarrow_
windarrow_OPβ€’6mo ago
still
No description
windarrow_
windarrow_OPβ€’6mo ago
I managed to choose my google account and connect ok trough the google auth screen
Brendan
Brendanβ€’6mo ago
But this seems more like a google permission problem
windarrow_
windarrow_OPβ€’6mo ago
oh but after login I authorized calendar and all that that it asked
Brendan
Brendanβ€’6mo ago
My guess would be there is something missing - but im not that familiar with Google cloud settings ...
windarrow_
windarrow_OPβ€’6mo ago
maybe this ?
No description
Brendan
Brendanβ€’6mo ago
yes i think this is the one needed This is for sure a thing where the docs could be a bit more specific πŸ™‚
windarrow_
windarrow_OPβ€’6mo ago
True! But I understand, still a lot of work and its all free and awesome enabled google calendar api and gmail still nothing
windarrow_
windarrow_OPβ€’6mo ago
Maybe people or contacts?
No description
windarrow_
windarrow_OPβ€’6mo ago
oh theres a thing called scopes wich u give permisions for your auth app
windarrow_
windarrow_OPβ€’6mo ago
I think this might be it
No description
Brendan
Brendanβ€’6mo ago
do the scopes include something for calendars ?
windarrow_
windarrow_OPβ€’6mo ago
but still the same maybe waiting a bit to update
Brendan
Brendanβ€’6mo ago
could take a moment
charles
charlesβ€’6mo ago
Thanks Brendan! Hi @windarrow_, has this solved your issue?
windarrow_
windarrow_OPβ€’6mo ago
Hello! Yes it's been working fine so far
charles
charlesβ€’6mo ago
great!
Want results from more Discord servers?
Add your server