# This file is a template for docker compose deployment # Copy this file to .env and change the values as needed #----------ADDED------------ SECRET_PASSWORD= POSTGRES_PASSWORD=$SECRET_PASSWORD #--------------------------- # AppFlowy Cloud ## URL that connects to the gotrue docker container APPFLOWY_GOTRUE_BASE_URL=http://gotrue:9999 ## URL that connects to the postgres docker container APPFLOWY_DATABASE_URL=postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres #CHANGED APPFLOWY_ACCESS_CONTROL=true APPFLOWY_WEBSOCKET_MAILBOX_SIZE=6000 APPFLOWY_DATABASE_MAX_CONNECTIONS=40 # admin frontend ## URL that connects to redis docker container ADMIN_FRONTEND_REDIS_URL=redis://redis:6379 ## URL that connects to gotrue docker container ADMIN_FRONTEND_GOTRUE_URL=http://gotrue:9999 # authentication key, change this and keep the key safe and secret # self defined key, you can use any string GOTRUE_JWT_SECRET=$SECRET_PASSWORD #CHANGED # Expiration time in seconds for the JWT token GOTRUE_JWT_EXP=7200 # User sign up will automatically be confirmed if this is set to true. # If you have OAuth2 set up or smtp configured, you can set this to false # to enforce email confirmation or OAuth2 login instead. # If you set this to false, you need to either set up SMTP GOTRUE_MAILER_AUTOCONFIRM=false # Number of emails that can be per minute GOTRUE_RATE_LIMIT_EMAIL_SENT=100 # If you intend to use mail confirmation, you need to set the SMTP configuration below # You would then need to set GOTRUE_MAILER_AUTOCONFIRM=false # Check for logs in gotrue service if there are any issues with email confirmation GOTRUE_SMTP_HOST= GOTRUE_SMTP_PORT= GOTRUE_SMTP_USER= GOTRUE_SMTP_PASS= GOTRUE_SMTP_ADMIN_EMAIL= # This user will be created when AppFlowy Cloud starts successfully # You can use this user to login to the admin panel GOTRUE_ADMIN_EMAIL= GOTRUE_ADMIN_PASSWORD=$SECRET_PASSWORD #CHANGED # User will be redirected to this after Email or OAuth login # Change this to your own domain where you host the docker-compose or gotrue # If you are using a different domain, you need to change the redirect_uri in the OAuth2 configuration # Make sure that this domain is accessible to the user API_EXTERNAL_URL= # In docker environment, `postgres` is the hostname of the postgres service # GoTrue connect to postgres using this url GOTRUE_DATABASE_URL=postgres://supabase_auth_admin:root@postgres:5432/postgres # Refer to this for details: https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/AUTHENTICATION.md # Google OAuth2 GOTRUE_EXTERNAL_GOOGLE_ENABLED=false GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID= GOTRUE_EXTERNAL_GOOGLE_SECRET= GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=http://your-host/gotrue/callback # GitHub OAuth2 GOTRUE_EXTERNAL_GITHUB_ENABLED=false GOTRUE_EXTERNAL_GITHUB_CLIENT_ID= GOTRUE_EXTERNAL_GITHUB_SECRET= GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI=http://your-host/gotrue/callback # Discord OAuth2 GOTRUE_EXTERNAL_DISCORD_ENABLED=false GOTRUE_EXTERNAL_DISCORD_CLIENT_ID= GOTRUE_EXTERNAL_DISCORD_SECRET= GOTRUE_EXTERNAL_DISCORD_REDIRECT_URI=http://your-host/gotrue/callback # File Storage # This is where storage like images, files, etc. will be stored # By default, Minio is used as the default file storage which uses host's file system APPFLOWY_S3_USE_MINIO=true APPFLOWY_S3_MINIO_URL=http://minio:9000 # change this if you are using a different address for minio APPFLOWY_S3_ACCESS_KEY=minioadmin APPFLOWY_S3_SECRET_KEY=$SECRET_PASSWORD #CHANGED APPFLOWY_S3_BUCKET=appflowy #APPFLOWY_S3_REGION=us-east-1 # AppFlowy Cloud Mailer APPFLOWY_MAILER_SMTP_HOST=$GOTRUE_SMTP_HOST #CHANGED APPFLOWY_MAILER_SMTP_PORT=$GOTRUE_SMTP_PORT #CHANGED APPFLOWY_MAILER_SMTP_USERNAME=$GOTRUE_SMTP_USER #CHANGED APPFLOWY_MAILER_SMTP_PASSWORD=$GOTRUE_SMTP_PASS #CHANGED # Log level for the appflowy-cloud service RUST_LOG=info # PgAdmin # Optional module to manage the postgres database # You can access the pgadmin at http://your-host/pgadmin # Refer to the APPFLOWY_DATABASE_URL for password when connecting to the database PGADMIN_DEFAULT_EMAIL=$GOTRUE_ADMIN_EMAIL #CHANGED PGADMIN_DEFAULT_PASSWORD=$SECRET_PASSWORD #CHANGED # Portainer (username: admin) PORTAINER_PASSWORD=$SECRET_PASSWORD #CHANGED # Cloudflare tunnel token CLOUDFLARE_TUNNEL_TOKEN= # If you are using a different postgres database, change the following values # GOTRUE_DATABASE_URL=postgres://supabase_auth_admin:root@:/$POSTGRES_DB # APPFLOWY_DATABASE_URL=postgres://POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:5432/$POSTGRES_DB # AppFlowy AI APPFLOWY_AI_OPENAI_API_KEY= APPFLOWY_AI_SERVER_PORT=5001 APPFLOWY_AI_SERVER_HOST=ai APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres #CHANGED # AppFlowy History APPFLOWY_HISTORY_URL=http://localhost:50051 APPFLOWY_HISTORY_REDIS_URL=redis://redis:6379 APPFLOWY_HISTORY_DATABASE_URL=postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres #CHANGED # AppFlowy Indexer APPFLOWY_INDEXER_DATABASE_URL=postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres #CHANGED APPFLOWY_INDEXER_REDIS_URL=redis://redis:6379