Skip to content

Commit

Permalink
update env docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji committed Mar 24, 2024
1 parent 04b9028 commit 2409c1c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PORTR_ADMIN_GITHUB_CLIENT_ID=
PORTR_ADMIN_GITHUB_CLIENT_SECRET=

PORTR_DOMAIN=example.com
PORTR_DB_URL=postgres://postgres:postgres@localhost:5432/postgres

PORTR_SERVER_URL=example.com
PORTR_SSH_URL=example.com:2222

CLOUDFLARE_API_TOKEN=

POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres

PORTR_ADMIN_ENCRYPTION_KEY=
15 changes: 8 additions & 7 deletions docs/src/content/docs/server-setup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,22 @@ The compose file has 4 services
Once you copy the compose file, create a `.env` with the following keys.

```text
GITHUB_APP_CLIENT_ID=
GITHUB_APP_CLIENT_SECRET=
PORTR_ADMIN_GITHUB_CLIENT_ID=
PORTR_ADMIN_GITHUB_CLIENT_SECRET=
DOMAIN=example.com
DB_URL=postgres://postgres:postgres@localhost:5432/postgres
PORTR_DOMAIN=example.com
PORTR_DB_URL=postgres://postgres:postgres@localhost:5432/postgres
ENCRYPTION_KEY=
PORTR_SERVER_URL=example.com
PORTR_SSH_URL=example.com:2222
SERVER_URL=example.com
SSH_URL=example.com:2222
CLOUDFLARE_API_TOKEN=
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
PORTR_ADMIN_ENCRYPTION_KEY=
```

Generate a random encryption key using the following command
Expand Down

0 comments on commit 2409c1c

Please sign in to comment.