Back

[SOLVED] Don't know how to setup HTTPS

  • 0
  • Self Hosted
  • General
  • Web
Bohda Řehák
3 Nov, 2023, 18:47

Hello everyone, I am a newbie in server administration and a complete newbie in web server configuration. I am running CentOS 9 Stream and Appwrite on my VPS. I also have a purchased domain. Ports 80 and 443 are open. Currently, I am in a situation where I can access Appwrite via the web, but only via HTTP, not HTTPS. I have done everything mentioned in the documentation for tls certificates. https://www.appwrite.io/docs/advanced/self-hosting/tls-certificates

I apologize for possibly a dumb question, but I really don't know what to do next. Is it necessary to install a web server as a reverse proxy and for example certbot, to make HTTPS functional? Or is there an option to configure Appwrite itself without using external applications?

TL;DR
User is having trouble setting up HTTPS for their Appwrite server on CentOS 9 Stream. They are unsure if they need to install a web server as a reverse proxy or use external applications like Certbot. Another user suggests generating certificates for their subdomains and configuring Appwrite accordingly, which solves the problem.
Drake
3 Nov, 2023, 18:48

Is it necessary to install a web server as a reverse proxy

Nope

have you browsed to appwrite with the self-signed cert?

Bohda Řehák
3 Nov, 2023, 19:13

Nope, haven't tried. Not sure how.

Bohda Řehák
3 Nov, 2023, 19:43

This is output of docker compose logs appwrite-worker-certificates command

appwrite-worker-certificates | [Job] Received Job (65453845379f89.46580878). appwrite-worker-certificates | Cannot renew domain (mydomain.com) on attempt no. 5 certificate: Failed to issue a certificate with message: Saving debug log to /var/log/letsencrypt/letsencrypt.log appwrite-worker-certificates | Plugins selected: Authenticator webroot, Installer None appwrite-worker-certificates | Performing the following challenges: appwrite-worker-certificates | http-01 challenge for mydomain.com appwrite-worker-certificates | Using the webroot path /storage/certificates for all unmatched domains. appwrite-worker-certificates | Waiting for verification... appwrite-worker-certificates | Challenge failed for domain mydomain.com appwrite-worker-certificates | http-01 challenge for mydomain.com appwrite-worker-certificates | Cleaning up challenges appwrite-worker-certificates | Some challenges have failed. appwrite-worker-certificates | Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. appwrite-worker-certificates | appwrite-worker-certificates | [Job] (65453845379f89.46580878) successfully run.

Drake
3 Nov, 2023, 21:49

do you have anything in front of appwrite? like cloudflare proxy?

Drake
3 Nov, 2023, 21:50

FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

Bohda Řehák
3 Nov, 2023, 22:08

I am not aware of that. nor does the output from curl suggest this.

Drake
3 Nov, 2023, 22:25

can you share your domain? feel free to DM me if you don't want to share here?

Drake
7 Nov, 2023, 15:24

weird...everything seems okay...

Drake
7 Nov, 2023, 15:24

are you still seeing the problem?

Bohda Řehák
9 Nov, 2023, 12:57

I found out, that i can generate certificates for my subdomains. So I configured appwrite to have the subdomain as it’s main domain and it works alright now. Thank you for the help though:)

Drake
10 Nov, 2023, 19:05

[SOLVED] Don't know how to setup HTTPS

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