feat: self host github oauth (#46)

This commit is contained in:
Tomasz Wsuł
2022-05-14 14:54:53 +02:00
committed by GitHub
parent 02c8bea084
commit 5b413d7e04
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -1,2 +1,6 @@
SITE_URL=localhost
DB_PASSWORD=changeme
# GitHub OAuth- https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
GITHUB_OAUTH_CLIENT_ID=yours_client_id
GITHUB_OAUTH_CLIENT_SECRET=yours_client_sected
+4 -2
View File
@@ -27,11 +27,13 @@ services:
environment:
- DATABASE_URL=postgres://postgres:${DB_PASSWORD}@db/windmill?sslmode=disable
- APP_USER_PASSWORD=changeme
- BASE_URL=https://localhost"
- BASE_INTERNAL_URL=http://localhost:8000"
- BASE_URL=https://${SITE_URL}
- BASE_INTERNAL_URL=http://localhost:8000
- RUST_LOG=info
- NUM_WORKERS=3
- RUST_BACKTRACE=1
- GITHUB_OAUTH_CLIENT_ID=${GITHUB_OAUTH_CLIENT_ID}
- GITHUB_OAUTH_CLIENT_SECRET=${GITHUB_OAUTH_CLIENT_SECRET}
depends_on:
db: