Skip to content

Commit

Permalink
chore: update .env.dist with a random string for NEXTAUTH_SECRET to i…
Browse files Browse the repository at this point in the history
…mprove security

feat: add Render YAML configuration file to deploy airbroke app on Render platform with a free web service and a free database service
  • Loading branch information
masterkain committed May 24, 2023
1 parent 9eb48ba commit 14ccad6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AIRBROKE_OPENAI_API_KEY="sk-xxx"
AIRBROKE_OPENAI_ORGANIZATION=""

# authentication
NEXTAUTH_SECRET="" # A random string used to hash tokens, sign cookies and generate cryptographic keys.
NEXTAUTH_SECRET="replaceme" # A random string used to hash tokens, sign cookies and generate cryptographic keys.
NEXTAUTH_URL="http://localhost:3000" # The URL of your application, used for signing cookies and OAuth secrets, defaults to http://localhost:3000
NEXTAUTH_DEBUG="false"

Expand Down
30 changes: 30 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#### Render Blueprint specification: https://dashboard.render.com/blueprints ####
## 👇 Preview environments: https://render.com/docs/preview-environments ###
# previewsEnabled: true
## 👇 Automatically nuke the environment after X days of inactivity to reduce billing:
# previewsExpireAfterDays: 2
services:
- type: web
name: airbroke
env: node
plan: free
## 👇 Specify the plan for the PR deployment:
# previewPlan: starter
## 👇 Preview Environment Initialization script:
# initialDeployHook: yarn db:seed
buildCommand: yarn install && yarn build
startCommand: yarn start
healthCheckPath: /api/hc
envVars:
- key: DATABASE_URL
fromDatabase:
name: airbroke-starter-db
property: connectionString
- key: DIRECT_URL
fromDatabase:
name: airbroke-starter-db
property: connectionString

databases:
- name: airbroke-starter-db
plan: free

0 comments on commit 14ccad6

Please sign in to comment.