Skip to content

Commit

Permalink
feat: add auth
Browse files Browse the repository at this point in the history
  • Loading branch information
allohamora committed Dec 16, 2021
1 parent 17eefde commit 437cbd1
Show file tree
Hide file tree
Showing 29 changed files with 1,890 additions and 92 deletions.
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=app
POSTGRES_PASSWORD=example
POSTGRES_DB=app
AUTH_SESSION_MAX=5
JWT_ACCESS_SECRET=secret
JWT_ACCESS_EXP=10m
JWT_REFRESH_SECRET=refresh_secret
JWT_REFRESH_EXP=30d
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ lerna-debug.log*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json

# Environment
.env
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.9"

services:
pg:
image: postgres:14.1
env_file:
- .env
ports:
- 5432:5432
volumes:
- pg-data:/var/lib/postgresql/data

volumes:
pg-data:
Loading

0 comments on commit 437cbd1

Please sign in to comment.