mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: revise and update proxy how-to (#43853)
This commit is contained in:
1 parent
d6f10cae9f
commit
6ea650f999
1 file changed
+5
-19
@@ -31,21 +31,7 @@ If you already run [HAProxy](https://www.haproxy.com/), [Traefik](https://traefi
|
||||
|
||||
</Admonition>
|
||||
|
||||
### Step 1: Remove public port bindings for API gateway
|
||||
|
||||
Comment out Kong's host port mappings in `docker-compose.yml` so that it's not exposed to the Internet:
|
||||
|
||||
```yaml
|
||||
kong:
|
||||
# ...
|
||||
ports:
|
||||
# - ${KONG_HTTP_PORT}:8000/tcp
|
||||
# - ${KONG_HTTPS_PORT}:8443/tcp
|
||||
```
|
||||
|
||||
Kong remains accessible to other containers on the internal Docker network.
|
||||
|
||||
### Step 2: Update environment variables
|
||||
### Step 1: Update environment variables
|
||||
|
||||
Update the URL configuration in your `.env` file to use your HTTPS domain:
|
||||
|
||||
@@ -62,7 +48,7 @@ PROXY_DOMAIN=your-domain.example.com
|
||||
CERTBOT_EMAIL=admin@your-domain.example.com
|
||||
```
|
||||
|
||||
### Step 3: Start the reverse proxy
|
||||
### Step 2: Start the reverse proxy
|
||||
|
||||
Pick one of the options below and use the corresponding Docker Compose overlay.
|
||||
|
||||
@@ -102,7 +88,7 @@ HTTP-to-HTTPS redirects are handled automatically by the `jonasal/nginx-certbot`
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
|
||||
### Step 4: Verify HTTPS connection
|
||||
### Step 3: Verify HTTPS connection
|
||||
|
||||
```sh
|
||||
curl -I https://<your-domain>/auth/v1/
|
||||
@@ -137,13 +123,13 @@ openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
|
||||
|
||||
### Step 2: Configure Kong for SSL
|
||||
|
||||
Comment out Kong's HTTP port mapping in `docker-compose.yml`:
|
||||
Comment out Kong's **HTTP** port mapping in `docker-compose.yml`:
|
||||
|
||||
```yaml
|
||||
kong:
|
||||
# ...
|
||||
ports:
|
||||
# - ${KONG_HTTP_PORT}:8000/tcp
|
||||
#- ${KONG_HTTP_PORT}:8000/tcp
|
||||
```
|
||||
|
||||
Uncomment the certificate volume mounts and SSL environment variables in `docker-compose.yml`:
|
||||
|
||||
Reference in new issue
Block a user