Skip to content
Discussion options

You must be logged in to vote

The default Studio credentials (DASHBOARD_USERNAME/DASHBOARD_PASSWORD in your .env) are just basic auth and not great for production exposure. Here are a few approaches in order of practicality:

1. Separate Nginx server block for Studio

You said you can't IP-whitelist because Kong handles multiple services. The fix: route Studio traffic directly to the Studio container (port 3000) instead of through Kong, using a dedicated subdomain or port:

server {
    listen 443 ssl;
    server_name studio.yourdomain.com;

    ssl_certificate     /etc/ssl/certs/yourdomain.crt;
    ssl_certificate_key /etc/ssl/private/yourdomain.key;

    # Only allow your IP(s)
    allow 203.0.113.10;  # your IP
    deny

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@daneshh
Comment options

@daneshh
Comment options

Answer selected by daneshh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@daneshh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
self-hosted Related to self-hosted Supabase
3 participants