Revize 59cbe6ba
Přidáno uživatelem Pavel Fidransky před asi 5 roky(ů)
server/src/main/resources/application.properties | ||
---|---|---|
1 | 1 |
server.servlet.context-path=/api |
2 |
spring.datasource.url=jdbc:mariadb://db:3306/yamanager |
|
3 |
spring.datasource.username=user |
|
4 |
spring.datasource.password=passwd |
|
5 |
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver |
|
2 |
|
|
3 |
spring.datasource.url=${JDBC_URL} |
|
4 |
spring.datasource.username=${JDBC_USERNAME} |
|
5 |
spring.datasource.password=${JDBC_PASSWORD} |
|
6 |
spring.datasource.driver-class-name=${JDBC_DRIVER} |
|
7 |
|
|
6 | 8 |
#populate these from your google oauth2 setup |
7 | 9 |
#https://www.baeldung.com/spring-security-5-oauth2-login |
8 |
#spring.security.oauth2.client.registration.google.client-id=<client id value here> |
|
9 |
#spring.security.oauth2.client.registration.google.client-secret=<secret here> |
|
10 |
spring.security.oauth2.client.registration.google.client-id=${OAUTH2_GOOGLE_CLIENT_ID} |
|
11 |
spring.security.oauth2.client.registration.google.client-secret=${OAUTH2_GOOGLE_CLIENT_SECRET} |
|
12 |
|
|
10 | 13 |
#comma-separated list of allowed domains, leave empty for all |
11 |
#ymanager.oauth2.client.google.allowed-domains=domain.com,domain2.com |
|
14 |
ymanager.oauth2.client.google.allowed-domains=${OAUTH2_GOOGLE_ALLOWED_DOMAINS} |
|
15 |
|
|
16 |
#comma-separated list of allowed origins, use asterisk for all |
|
17 |
ymanager.cors.allowed-origins=${CORS_ALLOWED_ORIGINS} |
Také k dispozici: Unified diff
re #33: modify backend app to load configuration from environment variables; locally loaded by docker-compose from .env file