-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cleanup env variales for docker setup
- Loading branch information
Showing
4 changed files
with
71 additions
and
43 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 |
---|---|---|
|
@@ -35,14 +35,9 @@ NEXTAUTH_URL="http://localhost:3000" | |
GOOGLE_CLIENT_ID="xxxxxxxxxx" | ||
GOOGLE_CLIENT_SECRET="xxxxxxxxxx" | ||
|
||
# SMTP | ||
EMAIL_SERVER_HOST="localhost" | ||
EMAIL_SERVER_PORT=1025 | ||
EMAIL_SERVER_USERNAME="captable" | ||
EMAIL_SERVER_PASSWORD="password" | ||
EMAIL_SERVER_SECURE=0 | ||
# EMAIL_SERVER=smtp://captable:[email protected]:2500 | ||
EMAIL_FROM=[email protected] | ||
# Email server | ||
EMAIL_FROM="Captable <[email protected]>" | ||
EMAIL_SERVER=smtp://captable:password@localhost:2500 | ||
|
||
# Uploads | ||
UPLOAD_PROVIDER="s3" | ||
|
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 |
---|---|---|
|
@@ -14,4 +14,50 @@ If you like to self-host Captable, Inc., please schedule a call with us, and we | |
|
||
- **Official Docker Images**: | ||
- <a href="https://hub.docker.com/r/captable/captable" target="_blank">Docker hub</a> | ||
- <a href="https://github.com/captableinc/captable/pkgs/container/captable" target="_blank">Github registry</a> | ||
<!-- - <a href="https://github.com/captableinc/captable/pkgs/container/captable" target="_blank">Github registry</a> --> | ||
|
||
- **Environment Variables**:\ | ||
Following envrionment variables are required | ||
|
||
```bash | ||
BASE_URL="https://your-domain.com" | ||
DATABASE_URL="postgres://user:password@host:port/dbname" | ||
NEXTAUTH_SECRET="xxx" # Generated by `openssl rand -base64 32` | ||
|
||
# Email server environment variables | ||
EMAIL_FROM="[email protected]" | ||
EMAIL_SERVER="smtp://username:password@host:port" | ||
|
||
# File uplod environment variables | ||
UPLOAD_REGION="us-west-1" # auto when using Cloudflare R2 | ||
UPLOAD_ENDPOINT="https://xxx.r2.cloudflarestorage.com" | ||
UPLOAD_ACCESS_KEY_ID="xxx" | ||
UPLOAD_SECRET_ACCESS_KEY="xxx" | ||
UPLOAD_BUCKET_PUBLIC="public-bucket-name" | ||
UPLOAD_BUCKET_PRIVATE="private-bucket-name" | ||
``` | ||
|
||
- **Setup CORS for file uploads**:\ | ||
Some of the services including Cloudflare R2 may require you to setup CORS for file uploads.\ | ||
|
||
> Here is an sample CORS configuration for Cloudflare R2. | ||
```json | ||
[ | ||
{ | ||
"AllowedOrigins": [ | ||
"https://your-domain.com" | ||
], | ||
"AllowedMethods": [ | ||
"HEAD", | ||
"GET", | ||
"POST", | ||
"PUT", | ||
"DELETE" | ||
], | ||
"AllowedHeaders": [ | ||
"*" | ||
] | ||
} | ||
] | ||
``` |
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