在 AWS 上自行安装 Supabase 并使用 PlanetScale Postgres 作为数据库提供程序。
Fastabase is a solution to self-host Supabase on AWS and use PlanetScale Postgres as the database provider.
Fastabase is built using several components:
pg_stat_statements and pg_cron extensions.max_client_conn to at least 50.Clone this repository and cd into it.
Init Git submodules:
git submodule update --initCreate a config.yaml configuration file:
cp config.yaml.example config.yamlFill in the values in config.yaml.
Install the dependencies:
pnpm iSet up the AWS credentials:
export AWS_PROFILE=[!TIP] To learn how to set up the AWS credentials in your terminal, please refer to the AWS documentation.
Run the deployment:
pnpm run deploy[!WARNING] SST deploys resources to a certain stage. This allows you to deploy multiple copies of your app in the same account.
By default, the stage name is set to the username on your local machine. You can specify a different stage name with
pnpm run deploy --stage.
To remove a deployed Fastabase instance, run:
pnpm run remove[!NOTE] If you used a non-default stage name during deployment, you also need to provide it here with
pnpm run remove --stage.
localhost in Supabase's codebase)By default, Amazon SES is in sandbox mode, which means you can only send emails from and to verified email addresses. Make sure to exit the sandbox mode before sending emails to real users.
Logs and Realtime components currently do not support connecting to Postgres with SSL, so they are connecting to PlanetScale via Envoy that serves as an SSL proxy. Envoy is deployed as an ECS service. Once the SSL support is implemented in Logs and Realtime components, the Envoy service will be removed.
暂无开放 Issues,或尚未同步最近议题。