mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Refractor auth logic
+ Add possibility (_requireAdminAuthentication, _requireTeamleaderAuthentication) to make auth optional + Add possibility to combine multiple auth types into one function
This commit is contained in:
@@ -52,6 +52,7 @@ if [ "$RECREATE" = true ]; then
|
||||
-e DATABASE_URL="postgresql://server:server@postgres:5432/management?schema=public" \
|
||||
-e NODE_ENV="development" \
|
||||
-e PORT="${D_PORT}" \
|
||||
-e JWT_SECRET="not_for_production" \
|
||||
-p "${D_PORT}":"${D_PORT}" \
|
||||
--entrypoint "/app/scripts/docker-entrypoint.dev.sh" \
|
||||
node
|
||||
|
||||
Reference in New Issue
Block a user