Back

Network failed error

  • 0
  • Users
  • Web
Bouahaza
26 Apr, 2023, 13:40

You can have some free domain here : https://www.freenom.com/ But I suggest you to reserve a $10/y domain on gandi or whatever

TL;DR
The user is experiencing confusion about setting up a domain name with SSL certification for their server. Another user suggests that the SSL certificate and domain should be worked on separately, and that a domain is only necessary to avoid third party cookie problems. The solution suggested is to purchase a valid domain from a provider and add an 'S' to the HTTP in the server configuration. It is also mentioned that Appwrite's main domain can be a subdomain and that free domains are available, but it is recommended to reserve a $10/year domain from a reputable provider like Gandi.
Drake
26 Apr, 2023, 13:40

But that requires a custom DNS server? So other people won't be able to access unless they use the custom DNS server, right?

Bouahaza
26 Apr, 2023, 13:41

Yeah true

Bouahaza
26 Apr, 2023, 13:47

It's works with subdomain for us : http://dev.xx.yy

Drake
26 Apr, 2023, 13:49

I meant Appwrite's main domain. It can be a subdomain, but the domain configured in the environment variables is Appwrite's main domain. Then there are custom domains for each project

Ashraf_Chowdury
26 Apr, 2023, 13:51

the main point is we need new domain name for each project. right?

Bouahaza
26 Apr, 2023, 13:52

Depends of your implementation

Bouahaza
26 Apr, 2023, 13:52

As I see, it's works. You just need to add "S" to http on this config

http://139-59-64-251.nip.io/ => https://139-59-64-251.nip.io/

Ashraf_Chowdury
26 Apr, 2023, 13:55

you have to buy a valid domain from any provider to use https://139-59-64-251.nip.io/ domain.

Ashraf_Chowdury
26 Apr, 2023, 13:57

now I can use http://139-59-64-251.nip.io/ in my local server, if I put the project into the production I have to use this domain https://139-59-64-251.nip.io/ which I have to buy from a provider.

Bouahaza
26 Apr, 2023, 13:57

After that you'll have CORS errors <:appwritebow:824077772192088064>

Ashraf_Chowdury
26 Apr, 2023, 13:58

Yehh

Bouahaza
26 Apr, 2023, 13:59

Here is the simplest solution

Drake
26 Apr, 2023, 14:15

not really...

Drake
26 Apr, 2023, 14:15

you don't need one. a domain for app is only required if you run into 3rd party cookie problems

Drake
26 Apr, 2023, 14:16

are you talking about the ssl certificate?

Ashraf_Chowdury
26 Apr, 2023, 14:16

yes

Drake
26 Apr, 2023, 14:17

so Appwrite might be able to get an SSL certificate for you.

Drake
26 Apr, 2023, 14:18

did you finish step 3 and 4?

Ashraf_Chowdury
26 Apr, 2023, 14:21

No

Ashraf_Chowdury
26 Apr, 2023, 14:22

I just confused, what I need to do

Ashraf_Chowdury
26 Apr, 2023, 14:23
  1. I want a domain name with SSL cortication
Ashraf_Chowdury
26 Apr, 2023, 14:23
  1. point it to your Appwrite server
  2. Update the domain environment variables
  3. Recreate the docker containers to deploy the environment variables change
  4. Update your app to use the new domain via https for the appwrite endpoint
Drake
26 Apr, 2023, 14:28

SSL != Domain. they are separate things and should be worked on separately. You need to get a domain. you can try using 139-59-64-251.nip.io.

Drake
26 Apr, 2023, 14:29

step 2 is done already because 139-59-64-251.nip.io already points to your server. now, you're on step 3

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more