2
0

chore: 🗑️ Tidy up env files

This commit is contained in:
Baptiste Arnaud
2022-02-10 17:13:57 +01:00
parent 19f4fdb83a
commit 901e2f39b0
8 changed files with 20 additions and 9 deletions

View File

@@ -0,0 +1,51 @@
DATABASE_URL=postgresql://postgres:@localhost:5432/typebot
SECRET=q3t6v9y$B&E)H@McQfTjWnZr4u7x!z%C #256-bits secret (can be generated here: https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx)
NEXTAUTH_URL=http://localhost:3000
# Used for email auth and email notifications
AUTH_EMAIL_SERVER_USERNAME=username
AUTH_EMAIL_SERVER_PASSWORD=password
AUTH_EMAIL_SERVER_HOST=smtp.example.com
AUTH_EMAIL_SERVER_PORT=587
AUTH_EMAIL_FROM_EMAIL=noreply@example.com
AUTH_EMAIL_FROM_NAME="John Smith"
# (Optional) Used for email notifications
EMAIL_NOTIFICATIONS_SERVER_USERNAME=username
EMAIL_NOTIFICATIONS_SERVER_PASSWORD=password
EMAIL_NOTIFICATIONS_SERVER_HOST=smtp.example.com
EMAIL_NOTIFICATIONS_SERVER_PORT=587
EMAIL_NOTIFICATIONS_FROM_EMAIL=noreply@example.com
EMAIL_NOTIFICATIONS_FROM_NAME="John Smith"
# Storage
# Used for uploading images, videos, etc...
S3_UPLOAD_KEY=
S3_UPLOAD_SECRET=
S3_UPLOAD_REGION=
S3_UPLOAD_BUCKET=
# Auth
# (Optional) Used to login using GitHub
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# (Optional) Used to login using Google AND Google Sheets integration
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# (Optional) Used to login using Facebook
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
# (Optional) Subscription Payment
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
# (Optional) Used for GIF search
NEXT_PUBLIC_GIPHY_API_KEY=
NEXT_PUBLIC_VIEWER_HOST=http://localhost:3001

View File

@@ -61,8 +61,12 @@ module.exports = withBundleAnalyzer({
],
fallback: [
{
source: '/:user*',
destination: process.env.NEXT_PUBLIC_VIEWER_HOST + '/:user*',
source: '/:typebotId*',
destination: process.env.NEXT_PUBLIC_VIEWER_HOST + '/:typebotId*',
},
{
source: '/api/:path*',
destination: process.env.NEXT_PUBLIC_VIEWER_HOST + '/api/:path*',
},
],
}

View File

@@ -1,5 +1,5 @@
{
"name": "typebot.io",
"name": "landing-page",
"version": "1.0.0",
"scripts": {
"dev": "next dev -p 3002",

View File

@@ -0,0 +1,3 @@
NEXT_PUBLIC_VIEWER_HOST=http://localhost:3001
DATABASE_URL=postgresql://postgres:@localhost:5432/typebot