Skip to content

Commit

Permalink
changed auth0 to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardolopezb committed Jul 4, 2023
1 parent 9a16090 commit d7707c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ services:
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro

redis:
image: redis
ports:
- "6379:6379"

app:
build:
context: .
Expand All @@ -38,6 +43,10 @@ services:
DB_USER: postgres
DB_PASSWORD: postgres
SHARE_URI: "http://localhost:8080/share"
REDIS_STREAM_KEY: ingsis
REDIS_HOST: localhost
REDIS_PORT: 6379
REDIS_STREAM_GROUP_LINT: lint-manager
labels:
com.datadoghq.ad.logs: '[{"source": "java", "service": "manager-api-dev", "log_processing_rules": [{"type": "multi_line", "name": "log_start_with_date", "pattern" : "\\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])"}]}]'

13 changes: 11 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#auth0:
# audience: https://ingsis-group-6-snippets.com
#spring:
# security:
# oauth2:
# resourceserver:
# jwt:
# issuer-uri: https://dev-rjrd5i1gdszeds2w.us.auth0.com/

auth0:
audience: https://ingsis-group-6-snippets.com
audience: ${AUTH_AUDIENCE}
spring:
security:
oauth2:
resourceserver:
jwt:
issuer-uri: https://dev-rjrd5i1gdszeds2w.us.auth0.com/
issuer-uri: ${AUTH_ISSUER}

logging:
level:
Expand Down

0 comments on commit d7707c2

Please sign in to comment.