-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: 📝 Improve docker guides and examples
- Loading branch information
1 parent
3600783
commit d1e94ee
Showing
7 changed files
with
344 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Configuration", | ||
"position": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: Overview | ||
slug: /self-hosting/configuration | ||
--- | ||
|
||
# Configuration | ||
|
||
:::note | ||
The easiest way to get started with Typebot is with [the official managed service in the Cloud](https://app.typebot.io). It takes 1 minute to try out the tool for free. You'll have high availability, backups, security, and maintenance all managed for you by me, Baptiste, Typebot's founder. | ||
|
||
That's also the best way to support my work, open-source software, and you'll get great service! | ||
::: | ||
|
||
When running Typebot on your machine, the following configuration parameters can be supplied as environment variables. | ||
|
||
Typebot is composed of 2 main applications: | ||
|
||
- The builder, where you build your typebots | ||
- The viewer, where your user answer the typebot | ||
|
||
Both apps have their environment to configure properly: | ||
|
||
- [Builder configuration](/self-hosting/configuration/builder) | ||
- [Viewer configuration](/self-hosting/configuration/viewer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
title: Viewer | ||
--- | ||
|
||
import { SponsorButton } from '../../../src/js/SponsorButton.jsx' | ||
|
||
# Viewer configuration | ||
|
||
## General | ||
|
||
| Parameter | Default | Description | | ||
| ---------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| DATABASE_URL | postgresql://postgres:typebot@db:5432/typebot | The database URL | | ||
| ENCRYPTION_SECRET | SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6 | A 256-bit key used to encrypt sensitive data. It is strongly recommended to [generate](https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx) a new one. The secret should be the same between builder and viewer. | | ||
| ADMIN_EMAIL | -- | The email that will get a "Pro" plan on user creation | | ||
| NEXTAUTH_URL | http://localhost:3000 | The builder base URL. Should be the publicly accessible URL (i.e. `https://typebot.domain.com`) | | ||
| NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL. Should be the publicly accessible URL (i.e. `https://bot.domain.com`) | | ||
| NEXTAUTH_URL_INTERNAL | -- | The internal builder base URL. You have to set it only when `NEXTAUTH_URL` isn't publicly accessible | | ||
| DISABLE_SIGNUP | false | To disable new sign ups but still be able to sign in with existing users or admin email | | ||
|
||
## Emails (Notifications) | ||
|
||
Used for sending email notifications and authentication | ||
|
||
| Parameter | Default | Description | | ||
| --------------- | ------- | ------------------------------------------------------------------------------- | | ||
| SMTP_USERNAME | -- | SMTP username | | ||
| SMTP_PASSWORD | -- | SMTP password | | ||
| SMTP_HOST | -- | SMTP host. (i.e. `smtp.host.com`) | | ||
| SMTP_PORT | 25 | SMTP port | | ||
| SMTP_FROM | - | From name and email (i.e. `'Typebot Notifications' <notifications@typebot.io>`) | | ||
| SMTP_IGNORE_TLS | false | Don't use TLS even if the server supports STARTTLS extension | | ||
|
||
## Google (Sheets) | ||
|
||
Used when executing a Google Sheets block. Make sure to set the required scopes (`userinfo.email`, `spreadsheets`, `drive.readonly`) in your console | ||
|
||
| Parameter | Default | Description | | ||
| -------------------- | ------- | --------------------------------------------- | | ||
| GOOGLE_CLIENT_ID | -- | The Client ID from the Google API Console | | ||
| GOOGLE_CLIENT_SECRET | -- | The Client secret from the Google API Console | | ||
|
||
## S3 Storage (File upload input) | ||
|
||
Used for the file upload input. It can be any S3 compatible object storage service (Minio, Digital Oceans Space, AWS S3...) | ||
|
||
| Parameter | Default | Description | | ||
| ------------- | ------- | -------------------------------------------------------------- | | ||
| S3_ACCESS_KEY | -- | S3 access key. Also used to check if upload feature is enabled | | ||
| S3_SECRET_KEY | -- | S3 secret key. | | ||
| S3_BUCKET | typebot | Name of the bucket where assets will be uploaded in. | | ||
| S3_PORT | -- | S3 Host port number | | ||
| S3_ENDPOINT | -- | S3 secret key. | | ||
| S3_SSL | true | Use SSL when establishing the connection. | | ||
| S3_REGION | -- | S3 region. | | ||
|
||
Your bucket must have the following policy that tells S3 to allow public read when an object is located under the public folder: | ||
|
||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "PublicRead", | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "s3:GetObject", | ||
"Resource": "arn:aws:s3:::<BUCKET_NAME>/public/*" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
You also need to configure CORS so that an object can be uploaded from the browser: | ||
|
||
```json | ||
[ | ||
{ | ||
"AllowedHeaders": ["*"], | ||
"AllowedMethods": ["PUT", "POST"], | ||
"AllowedOrigins": ["*"], | ||
"ExposeHeaders": ["ETag"] | ||
} | ||
] | ||
``` | ||
|
||
:::note | ||
If you're self-hosting Typebot, [sponsoring me](https://github.com/sponsors/baptisteArno) is a great way to give back to the community and to contribute to the long-term sustainability of the project. | ||
|
||
<SponsorButton /> | ||
|
||
Thank you for supporting independent creators of Free Open Source Software! | ||
::: |
Oops, something went wrong.
d1e94ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./apps/docs
docs-typebot-io.vercel.app
docs-git-main-typebot-io.vercel.app
docs.typebot.io
d1e94ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2-alpha – ./apps/viewer
am.nigerias.io
bot.aws.bj
an.nigerias.io
sat.cr8.ai
vhpage.cr8.ai
apo.nigerias.io
ar.nigerias.io
apr.nigerias.io
bt.id8rs.com
aso.nigerias.io
chat.sureb4.com
games.klujo.com
bot.piccinato.co
sakuranembro.it
bot.upfunnel.art
faqs.nigerias.io
clo.closeer.work
eventhub.com.au
feedback.ofx.one
stan.vselise.com
voicehelp.cr8.ai
app.chatforms.net
ov1.wpwakanda.com
gentleman-shop.fr
sell.applepie.pro
ov2.wpwakanda.com
ov3.wpwakanda.com
this-is-a-test.com
goalsettingbot.com
zap.techadviser.in
bot.eventhub.com.au
forms.webisharp.com
typebot.stillio.com
bot.ansuraniphone.my
bot.cotemeuplano.com
chat.hayurihijab.com
abutton.wpwakanda.com
get.freebotoffer.xyz
bot.incusservices.com
bbutton.wpwakanda.com
bot.meuesocial.com.br
cdd.searchcube.com.sg
chat.missarkansas.org
sbutton.wpwakanda.com
apply.ansuraniphone.my
c23111azqw.nigerias.io
bbutton.wpwwakanda.com
felipewelington.com.br
form.searchcube.com.sg
gcase.barrettamario.it
info.clickasuransi.com
kodawariab736.skeep.it
83242573.actualizar.xyz
view.onlinebotdemo.xyz
mainmenu.diddancing.com
subfooter.wpwakanda.com
91181264.your-access.one
form.sergiolimajr.com.br
hunterbot.saleshunter.ai
type.opaulovieira.com.br
bot.cabinrentalagency.com
aibot.angrybranding.co.uk
boyfriend-breakup.riku.ai
type.dericsoncalari.com.br
designguide.techyscouts.com
piazzatorre.barrettamario.it
onboarding.libertydreamcare.ie
agendamento.sergiolimajr.com.br
bookings.littlepartymonkeys.com
type.talitasouzamarques.com.br
bot.comercializadoraomicron.com
personal-trainer.barrettamario.it
studiotecnicoimmobiliaremerelli.it
viewer-v2-alpha-typebot-io.vercel.app
viewer-v2-alpha-git-main-typebot-io.vercel.app
preagendamento.sergiolimajr.com.br
d1e94ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
bots.bridge.ai
talk.gocare.io
bergamo.store
bot.joof.it
yoda.riku.ai
app.yvon.earth
gollum.riku.ai
bot.jesopizz.it
bot.tvbeat.it
chat.hayuri.id
bot.contakit.com
viewer.typebot.io
bot.rihabilita.it
zap.fundviser.in
bot.dsignagency.com
chatbot.matthesv.de
88584434.therpm.club
demo.wemakebots.xyz
bot.danyservice.it
fitness.riku.ai
bot.barrettamario.it
bot.coachayongzul.com
92109660.therpm.club
bot.digitalpointer.id
hello.advergreen.com
bot.eikju.photography
bot.outstandbrand.com
bot.robertohairlab.it
criar.somaperuzzo.com
bot.ilmuseoaiborghi.it
form.bridesquadapp.com
bot.pratikmandalia.com
arrivalx2.wpwakanda.com
michaeljackson.riku.ai
91375310.actualizar.xyz
87656003.actualizar.xyz
88152257.actualizar.xyz
link.venturasuceder.com
bot.hotelplayarimini.it
bot.amicidisanfaustino.it
invite.bridesquadapp.com
chat.thehomebuyersusa.com
typebot-viewer.vercel.app
casestudyemb.wpwakanda.com
bot.adventureconsulting.hu
forms.hiabhaykulkarni.com
herbalife.barrettamario.it
chat.atlasoutfittersk9.com
homepageonly.wpwakanda.com
tarian.theiofoundation.org
mainmenu1one.wpwakanda.com
liveconvert.kandalearn.com
bot.pinpointinteractive.com
bot.seidibergamoseanchetu.it
liveconvert2.kandalearn.com
forms.escoladeautomacao.com.br
bot.polychromes-project.com
bot.seidinembroseanchetu.it
bot.studiotecnicoimmobiliaremerelli.it
viewer-v2-git-main-typebot-io.vercel.app
viewer-v2-typebot-io.vercel.app
d1e94ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io