Back

[SOLVED] Custom SSL Certificate

  • 0
  • Self Hosted
ZachHandley
22 Oct, 2023, 19:05

So I have an Appwrite instance up and I had it on non-standard ports, but I reran the install script with standard ports and now it is still not-ssl, how can I use custom certs? Should I mpodify the docker-compose traefik labels?

TL;DR
User wants to use custom SSL certificates on their Appwrite instance. They have rerun the install script with standard ports but the instance is still not SSL. They ask if they should modify the docker-compose traefik labels or check the worker certificate logs. They mention that the server is also exposed on port 80. User has a custom certificate generated by their employer that they want to use. They ask if there is a way to use custom certificates and suggest adding a section in the config to add custom certs. User also asks if they can access Appwrite environment inside the client or only in functions. Another user suggests looking at how App
Drake
22 Oct, 2023, 19:06

Is the server exposed on port 80 too?

Drake
22 Oct, 2023, 19:06

Check the worker certificates logs

ZachHandley
22 Oct, 2023, 19:09

yes

ZachHandley
22 Oct, 2023, 19:09

okay

ZachHandley
22 Oct, 2023, 19:10

lol

ZachHandley
22 Oct, 2023, 19:10
ZachHandley
22 Oct, 2023, 19:10

it thinks .ai is not a valid domain

ZachHandley
22 Oct, 2023, 19:10

but regardless, I have a certificate

ZachHandley
22 Oct, 2023, 19:10

generated by my employer that he wants to use

Drake
22 Oct, 2023, 19:11

Hmmm maybe ya

ZachHandley
22 Oct, 2023, 19:13

so is there a way for me to use custom certs? If not that would be a great addition lol, not all certs are gonna be automatic

Drake
22 Oct, 2023, 19:14

You could have something in front handling that or do something with traefik

ZachHandley
22 Oct, 2023, 19:14

gotcha

ZachHandley
22 Oct, 2023, 19:15

I'll set it up with Traefik, I might have to modify it to include the certs though somehow

ZachHandley
22 Oct, 2023, 19:15

hey is there any way to access appwrite env inside client?

ZachHandley
22 Oct, 2023, 19:15

or only functions?

ZachHandley
22 Oct, 2023, 19:16

would be nice to have a section in config to just add custom certs

ZachHandley
22 Oct, 2023, 19:16

then have the .env _USE_CUSTOM_SSL_CERTS or something

ZachHandley
22 Oct, 2023, 19:17

and if true and they are defined then pull from user defined location

ZachHandley
22 Oct, 2023, 19:17

I'd prefer an upload but idk how secure that is comparatively

Drake
22 Oct, 2023, 19:49

Look at how Appwrite does it. Maybe it'll work if you add an entry manually (certificates and config volumes)

ZachHandley
22 Oct, 2023, 22:59

copy

ZachHandley
22 Oct, 2023, 22:59

I'll try it out

ZachHandley
24 Oct, 2023, 15:50

should I try to mount the folder in its place

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