diff --git a/assets/images/env_self_host.png b/assets/images/env_self_host.png new file mode 100644 index 00000000..94a89313 Binary files /dev/null and b/assets/images/env_self_host.png differ diff --git a/dev.env b/dev.env index ab886977..c95f84f0 100644 --- a/dev.env +++ b/dev.env @@ -32,7 +32,7 @@ DATABASE_URL=postgres://postgres:password@localhost:5433/postgres SQLX_OFFLINE=false # Google OAuth2 -GOTRUE_EXTERNAL_GOOGLE_ENABLED=false +GOTRUE_EXTERNAL_GOOGLE_ENABLED=true GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID= GOTRUE_EXTERNAL_GOOGLE_SECRET= GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=http://localhost:9998/callback diff --git a/doc/EC2_SELF_HOST_GUIDE.md b/doc/EC2_SELF_HOST_GUIDE.md index d1299631..f8ddc5d9 100644 --- a/doc/EC2_SELF_HOST_GUIDE.md +++ b/doc/EC2_SELF_HOST_GUIDE.md @@ -140,7 +140,26 @@ These commands are helpful for Docker maintenance but use them with caution as t ## Q & A -### Resolving the 'No Space Left on Device' Error when using free-tier EC2 instance +### 1.Troubleshooting Redirect Issues After OAuth Login in AppFlowy + +#### Issue: Inability to Redirect to AppFlowy Application After Login with Google/GitHub/Discord + +If you're encountering difficulties redirecting to the AppFlowy application after attempting to log in using Google, GitHub, or Discord OAuth, follow these steps for troubleshooting: + +1. **Check OAuth Configuration for Google**: + - Ensure `GOTRUE_EXTERNAL_GOOGLE_ENABLED` is set to `true`. + - Verify that all other necessary Google OAuth credentials are correctly configured. + +2. **Apply Similar Checks for Other OAuth Providers**: + - Follow the same verification process for other OAuth providers like GitHub and Discord. Make sure their respective configurations are correctly set. + + ![img.png](../assets/images/env_self_host.png) + + The provided image illustrates the correct configuration settings. + + + +### 2. Resolving the 'No Space Left on Device' Error when using free-tier EC2 instance Encountering a 'No space left on device' error indicates that your device's storage is full. Here's how to resolve this: diff --git a/doc/deployment.md b/doc/deployment.md index 67d42c3b..42976deb 100644 --- a/doc/deployment.md +++ b/doc/deployment.md @@ -24,7 +24,12 @@ For older versions of Docker Engine that do not include Docker Compose: ## Steps -> **πŸš€Note for AWS Users:** [Here](./EC2_SELF_HOST_GUIDE.md) is a step by step guide to self host AppFlowy Cloud on AWS EC2. Skip it if you are not using AWS. +> **πŸš€πŸš€πŸš€ Quick Try: Step-by-Step Guide** +> +> For an in-depth, step-by-step guide on self-hosting AppFlowy Cloud on AWS EC2, particularly for demonstration purposes, please consult our detailed documentation: +> [Self-Hosting AppFlowy Cloud on AWS EC2 - Step by Step Guide](./EC2_SELF_HOST_GUIDE.md) +> +> **Note:** This guide is tailored for demonstration purposes using the AWS EC2 free tier. For more customized deployment options, please follow the subsequent steps outlined below. ### 1. Getting source files