diff --git a/.env.example b/.env.example index 21d85a5..959b650 100755 --- a/.env.example +++ b/.env.example @@ -1 +1,7 @@ -OpenWeatherMapAPIKey= \ No newline at end of file +OpenWeatherMapAPIKey= + +# Passkey configuration (WebAuthn Relying Party ID and Origin) +# For local dev: localhost and http://localhost +# For production: e.g. kapteins-daagbok.eu and https://kapteins-daagbok.eu +RP_ID=localhost +ORIGIN=http://localhost \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index fa2abd8..6c522bd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,8 +24,8 @@ services: environment: PORT: 5000 DATABASE_URL: "postgresql://postgres:postgres@db:5432/daagbox?schema=public" - RP_ID: localhost - ORIGIN: http://localhost + RP_ID: ${RP_ID:-localhost} + ORIGIN: ${ORIGIN:-http://localhost} command: sh -c "npx prisma db push && node dist/index.js" depends_on: db: