Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#2): Add registration and jwt auth #17

Merged
merged 9 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DATABASE_HOSTNAME=localhost
DATABASE_USERNAME=boilerplate
DATABASE_PASSWORD=boilerplate
DATABASE_NAME=boilerplate
DATABASE_HOSTNAME=
DATABASE_USERNAME=
DATABASE_PASSWORD=
DATABASE_NAME=

# An aes-128-cbc key generated at https://asecuritysite.com/encryption/keygen (take the "key" field)
JWT_SECRET=7110BFEFB081550D9656FFE04C894FE7
JWT_SECRET=

OPENAPI_USERNAME=openapi
OPENAPI_PASSWORD=openapi
OPENAPI_USERNAME=
OPENAPI_PASSWORD=
2 changes: 2 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
POSTGRES_DB: mashreq
POSTGRES_USER: mashreq
POSTGRES_PASSWORD: RaN60M1
OPENAPI_USERNAME: openapi
OPENAPI_PASSWORD: openapi
JWT_SECRET: 2C2D3245018E44B39D5D86049BE565F3
CORS_ALLOWED_ORIGIN: http://localhost:3000
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
POSTGRES_DB: mashreq
POSTGRES_USER: mashreq
POSTGRES_PASSWORD: RaN60M1
OPENAPI_USERNAME: openapi
OPENAPI_PASSWORD: openapi
JWT_SECRET: 2C2D3245018E44B39D5D86049BE565F3
CORS_ALLOWED_ORIGIN: http://localhost:3000
steps:
Expand Down
5 changes: 3 additions & 2 deletions docker/docker-compose-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ networks:

services:
postgres:
image: ajhelsby/postgis
image: postgres:15
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: mashreq
POSTGRES_PASSWORD: RaN60M1@3
POSTGRES_PASSWORD: HaaeN9TZ5ssmYWpSm3nu
POSTGRES_DB: mashreq
16 changes: 16 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.5'

networks:
mashreqnetwork:
driver: bridge

services:
postgres:
image: postgres:15
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: mashreq
POSTGRES_PASSWORD: HaaeN9TZ5ssmYWpSm3nu
POSTGRES_DB: mashreq
Loading
Loading