Skip to content

Commit

Permalink
Added env. deployment variable to define allowed cors origins
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnul97 authored and Coduz committed Mar 23, 2023
1 parent 0ad8ee6 commit 445b037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assembly/api/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ENV SERVICE_BROKER_ADDR failover:(amqp://events-broker:5672)?jms.sendTimeout=100

ENV JOB_ENGINE_BASE_ADDR http://job-engine:8080/v1

ENV JAVA_OPTS "-Dcommons.db.schema.update=true \
ENV JAVA_OPTS "-Dapi.cors.origins.allowed=\${API_CORS_ORIGINS_ALLOWED} \
-Dcommons.db.schema.update=true \
-Dcommons.db.connection.host=\${SQL_DB_ADDR} \
-Dcommons.db.connection.port=\${SQL_DB_PORT} \
-Dbroker.host=\${BROKER_ADDR} \
Expand Down
1 change: 1 addition & 0 deletions deployment/docker/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ services:
- es
- events-broker
environment:
- API_CORS_ORIGINS_ALLOWED
- CRYPTO_SECRET_KEY
- KAPUA_DISABLE_SSL
- KAPUA_DISABLE_DATASTORE
Expand Down

0 comments on commit 445b037

Please sign in to comment.