mirror of
https://forgejo.merr.is/annika/isl-api.git
synced 2025-12-16 00:11:08 -05:00
Added JWT Auth
Wrote my own JWT auth middleware, since I could not get the go-chi middleware to accept a JWKS instead of a certificate.
This commit is contained in:
parent
ac18b94a86
commit
b5ea01729b
12 changed files with 336 additions and 132 deletions
29
_docker/docker-compose.yml
Normal file
29
_docker/docker-compose.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Use postgres/example user/password credentials
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
api:
|
||||
image: forgejo.merr.is/annika/isl-api:latest
|
||||
restart: always
|
||||
environment:
|
||||
- ISL_API_DB_CONNECTION_STRING=postgres://isl:development@db:5432/isl
|
||||
- ISL_API_HTTP_PORT=3000
|
||||
ports:
|
||||
- 3000:3000
|
||||
db:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: isl
|
||||
POSTGRES_PASSWORD: development
|
||||
POSTGRES_DB: isl
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||
ports:
|
||||
- 5432:5432
|
||||
adminer:
|
||||
image: adminer
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue