From 7fb2bb9f39c7d3cd205bfb6d50bf0bd1e55b181e Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 9 Aug 2024 00:56:52 -0400 Subject: [PATCH] Update ENVs in Supabase Docker --- .gitignore | 1 + .minpluto/docker/supabase/.env.sample | 107 ++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100755 .minpluto/docker/supabase/.env.sample diff --git a/.gitignore b/.gitignore index 503fa1a..01396a4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ source/.env.production /source/src/pages/ru/ # other +.minpluto/docker/supabase/.env diff --git a/.minpluto/docker/supabase/.env.sample b/.minpluto/docker/supabase/.env.sample new file mode 100755 index 0000000..8c95c07 --- /dev/null +++ b/.minpluto/docker/supabase/.env.sample @@ -0,0 +1,107 @@ +########### +# Docker Volumes +# All folders provided in `./supabase-volume/` must be included +########### +SUPABASE_ENTIRE_VOLUME="./supabase-volume/" + +############ +# Secrets +# YOU MUST CHANGE THESE BEFORE GOING INTO PRODUCTION +############ + +POSTGRES_PASSWORD=5lgHamV44d8D1GN9LRS6b44VxREi4692 +JWT_SECRET=paxDX2xE00qFa4I1r6PKe15nIkB089I4 +ANON_KEY=9X43H6LKq3115zmZhZj95f2IJ104a603 +SERVICE_ROLE_KEY=K2G792rYBZR0kZvw9Zp6182zAwzxsdas +DASHBOARD_USERNAME=mp_admin +DASHBOARD_PASSWORD=ez116oqVWd4wHZUQNbgW3fA0m958FN09 + +############ +# Database - You can change these to any PostgreSQL database that has logical replication enabled. +############ + +# default user is postgres +POSTGRES_HOST=db +POSTGRES_DB=postgres +POSTGRES_PORT=1945 + +############ +# API Proxy - Configuration for the Kong Reverse proxy. +############ + +KONG_HTTP_PORT=1942 +KONG_HTTPS_PORT=1943 + +############ +# API - Configuration for PostgREST. +############ + +PGRST_DB_SCHEMAS=public,storage,graphql_public + +############ +# Auth - Configuration for the GoTrue authentication server. +############ + +## General +SITE_URL=http://localhost:1930 +ADDITIONAL_REDIRECT_URLS= +JWT_EXPIRY=3600 +DISABLE_SIGNUP=false +API_EXTERNAL_URL=https://db.minpluto.org + +## Mailer Config +MAILER_URLPATHS_CONFIRMATION="/auth/v1/verify" +MAILER_URLPATHS_INVITE="/auth/v1/verify" +MAILER_URLPATHS_RECOVERY="/auth/v1/verify" +MAILER_URLPATHS_EMAIL_CHANGE="/auth/v1/verify" + +## Email auth +ENABLE_EMAIL_SIGNUP=true +ENABLE_EMAIL_AUTOCONFIRM=false +SMTP_ADMIN_EMAIL=no-reply@minpluto.org +SMTP_HOST=smtp.resend.com +SMTP_PORT=587 +SMTP_USER=resend +SMTP_PASS=re_2EbqJq6m_4UeuWv +SMTP_SENDER_NAME=MinPluto +ENABLE_ANONYMOUS_USERS=true + +## Phone auth +ENABLE_PHONE_SIGNUP=false +ENABLE_PHONE_AUTOCONFIRM=false + +############ +# Studio - Configuration for the Dashboard +############ + +STUDIO_DEFAULT_ORGANIZATION=Default Organization +STUDIO_DEFAULT_PROJECT=Default Project + +STUDIO_PORT=1944 +SUPABASE_PUBLIC_URL=http://localhost:8000 + +# Enable webp support +IMGPROXY_ENABLE_WEBP_DETECTION=true + +############ +# Functions - Configuration for Functions +############ +# NOTE: VERIFY_JWT applies to all functions. Per-function VERIFY_JWT is not supported yet. +FUNCTIONS_VERIFY_JWT=false + +############ +# Logs - Configuration for Logflare +# Please refer to https://supabase.com/docs/reference/self-hosting-analytics/introduction +############ + +LOGFLARE_LOGGER_BACKEND_API_KEY=your-super-secret-and-long-logflare-key + +# Change vector.toml sinks to reflect this change +LOGFLARE_API_KEY=your-super-secret-and-long-logflare-key + +# Docker socket location - this value will differ depending on your OS +DOCKER_SOCKET_LOCATION=/var/run/docker.sock + +# Google Cloud Project details +GOOGLE_PROJECT_ID=GOOGLE_PROJECT_ID +GOOGLE_PROJECT_NUMBER=GOOGLE_PROJECT_NUMBER \ No newline at end of file