-
Hello! I'm setting up a self-hosted supabase instance and don't know where to grab the SSL certificate from. Would someone be able to direct me in the right direction? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hi @mrvillage, for the self hosted setup you will need to generate a SSL cert for your domain from a CA like LetsEncrypt, Digicert and you can add the cert to Kong. If you are just need this for local development, you can create a self signed certificate. There is more information on how to do this here. The process is slightly different for setting up SSL for postgres, let me know if you are looking for that |
Beta Was this translation helpful? Give feedback.
-
is it really true that in dbless mode kong only accepts ssl certificates if they are HARDCODED into the kong.yaml? |
Beta Was this translation helpful? Give feedback.
-
Is there any more information available on this? I looked at the recommended Kong documentation, but I can't figure out how to follow those instructions for local Supabase development. I'm baffled by:
I have no idea how to translate that to putting the certificates somewhere on my local machine. |
Beta Was this translation helpful? Give feedback.
-
The easiest way I think is to use Nginx as a reverse proxy: # In Nginx's config file
server {
listen 9443 ssl http2;
server_name xxxxx.com;
# SSL Configuration
........
location / {
# Use http since Kong is not configured with SSL
proxy_pass http://127.0.0.1:8000;
........
} If you use the same port as Kong (8000 & 8443), you may need to set the Kong container to only listen on 127.0.0.1: kong:
.........
ports:
- 127.0.0.1:${KONG_HTTP_PORT}:8000/tcp
- 127.0.0.1:${KONG_HTTPS_PORT}:8443/tcp |
Beta Was this translation helpful? Give feedback.
Hi @mrvillage, for the self hosted setup you will need to generate a SSL cert for your domain from a CA like LetsEncrypt, Digicert and you can add the cert to Kong. If you are just need this for local development, you can create a self signed certificate. There is more information on how to do this here.
The process is slightly different for setting up SSL for postgres, let me know if you are looking for that