mirror of
https://github.com/documenso/documenso.git
synced 2025-11-09 20:12:31 +10:00
Add gitpod config files
This commit is contained in:
29
.env.gitpod
Normal file
29
.env.gitpod
Normal file
@ -0,0 +1,29 @@
|
||||
DATABASE_URL="postgres://documenso:password@127.0.0.1:54320/documenso"
|
||||
NEXT_PUBLIC_WEBAPP_URL=""
|
||||
|
||||
# AUTH
|
||||
NEXTAUTH_SECRET='lorem ipsum sit dolor random string for encryption this could literally be anything'
|
||||
NEXTAUTH_URL=""
|
||||
|
||||
# SIGNING
|
||||
CERT_FILE_PATH=""
|
||||
CERT_PASSPHRASE=""
|
||||
CERT_FILE_ENCODING=""
|
||||
|
||||
# EMAIL
|
||||
SMTP_MAIL_HOST='127.0.0.1'
|
||||
SMTP_MAIL_PORT='2500'
|
||||
SMTP_MAIL_USER='documenso'
|
||||
SMTP_MAIL_PASSWORD='documenso'
|
||||
MAIL_FROM='documenso@gitpod.io'
|
||||
|
||||
# STRIPE
|
||||
STRIPE_API_KEY=""
|
||||
STRIPE_WEBHOOK_SECRET=""
|
||||
NEXT_PUBLIC_STRIPE_COMMUNITY_PLAN_MONTHLY_PRICE_ID=""
|
||||
NEXT_PUBLIC_STRIPE_COMMUNITY_PLAN_YEARLY_PRICE_ID=""
|
||||
|
||||
#FEATURE FLAGS
|
||||
# Allow users to register via the /signup page. Otherwise they will be redirect to the home page.
|
||||
NEXT_PUBLIC_ALLOW_SIGNUP=true
|
||||
NEXT_PUBLIC_ALLOW_SUBSCRIPTIONS=false
|
||||
61
.gitpod.yml
Normal file
61
.gitpod.yml
Normal file
@ -0,0 +1,61 @@
|
||||
tasks:
|
||||
- name: Dependencies & Database
|
||||
init: |
|
||||
npm install &&
|
||||
npm run docker:compose-up &&
|
||||
cp .env.gitpod .env &&
|
||||
next_auth_secret=$(openssl rand -base64 32) &&
|
||||
sed -i -e "s|^NEXTAUTH_SECRET=.*|NEXTAUTH_SECRET=$next_auth_secret|" .env &&
|
||||
sed -i "s|NEXTAUTH_URL=\"\"|NEXTAUTH_URL=https://3000-${HOSTNAME}.${GITPOD_WORKSPACE_CLUSTER_HOST}|" .env &&
|
||||
sed -i "s|NEXT_PUBLIC_WEBAPP_URL=\"\"|NEXT_PUBLIC_WEBAPP_URL=https://3000-${HOSTNAME}.${GITPOD_WORKSPACE_CLUSTER_HOST}|" .env
|
||||
command: npm run d
|
||||
|
||||
- name: Database Studio
|
||||
command: |
|
||||
gp ports await 3000
|
||||
npm run db-studio
|
||||
|
||||
ports:
|
||||
- name: App
|
||||
port: 3000
|
||||
visibility: public
|
||||
onOpen: open-browser
|
||||
|
||||
- name: Mailbox
|
||||
port: 9000
|
||||
visibility: public
|
||||
onOpen: open-browser
|
||||
|
||||
- name: Database
|
||||
port: 54320
|
||||
visibility: private
|
||||
onOpen: ignore
|
||||
|
||||
- name: Mailserver
|
||||
port: 2500
|
||||
visibility: private
|
||||
onOpen: ignore
|
||||
|
||||
- name: Database Studio
|
||||
port: 5555
|
||||
visibility: public
|
||||
onOpen: open-browser
|
||||
|
||||
- port: 1100
|
||||
visibility: private
|
||||
onOpen: ignore
|
||||
|
||||
github:
|
||||
prebuilds:
|
||||
master: true
|
||||
pullRequests: true
|
||||
pullRequestsFromForks: true
|
||||
addCheck: true
|
||||
addComment: true
|
||||
addBadge: true
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- esbenp.prettier-vscode
|
||||
- bradlc.vscode-tailwindcss
|
||||
- Prisma.prisma
|
||||
Reference in New Issue
Block a user