Skip to content

Commit

Permalink
build($Configuration): update each environment configuration
Browse files Browse the repository at this point in the history
application-*.yml is corresponding with network configuration
with docker-compose

BREAKING CHANGE: application-*.yml is corresponding with network configuration with docker-compose
  • Loading branch information
johnnymillergh committed May 15, 2020
1 parent 5db8c28 commit 72b6c97
Show file tree
Hide file tree
Showing 22 changed files with 409 additions and 162 deletions.
71 changes: 62 additions & 9 deletions api-portal/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,68 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.4.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.4.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.4.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.4.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

custom:
configuration:
super-user: "admin"
# Make `web-security-disabled` equal to true to disable web security. We suggest you do not turn off web security
# feature unless development environment.
web-security-disabled: false
# Disable web request information log
web-request-log-disabled: false
ignored-request:
post:
- "/authentication/**"
get:
- "/auth/check-username-uniqueness"
- "/auth/check-email-uniqueness"
- "/auth/validate-username/**"
- "/user/get-avatar"
- "/common/get-jwt"
pattern:
- "/actuator/**"
- "/druid/**"
- "/swagger-resources/**"
- "/v2/api-docs/**"

sftp:
client:
configuration:
host: 172.16.4.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
71 changes: 62 additions & 9 deletions api-portal/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,68 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.3.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.3.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.4.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.3.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

custom:
configuration:
super-user: "admin"
# Make `web-security-disabled` equal to true to disable web security. We suggest you do not turn off web security
# feature unless development environment.
web-security-disabled: false
# Disable web request information log
web-request-log-disabled: false
ignored-request:
post:
- "/authentication/**"
get:
- "/auth/check-username-uniqueness"
- "/auth/check-email-uniqueness"
- "/auth/validate-username/**"
- "/user/get-avatar"
- "/common/get-jwt"
pattern:
- "/actuator/**"
- "/druid/**"
- "/swagger-resources/**"
- "/v2/api-docs/**"

sftp:
client:
configuration:
host: 172.16.3.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
71 changes: 62 additions & 9 deletions api-portal/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,68 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.2.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.2.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.2.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.2.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

custom:
configuration:
super-user: "admin"
# Make `web-security-disabled` equal to true to disable web security. We suggest you do not turn off web security
# feature unless development environment.
web-security-disabled: false
# Disable web request information log
web-request-log-disabled: false
ignored-request:
post:
- "/authentication/**"
get:
- "/auth/check-username-uniqueness"
- "/auth/check-email-uniqueness"
- "/auth/validate-username/**"
- "/user/get-avatar"
- "/common/get-jwt"
pattern:
- "/actuator/**"
- "/druid/**"
- "/swagger-resources/**"
- "/v2/api-docs/**"

sftp:
client:
configuration:
host: 172.16.2.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
48 changes: 39 additions & 9 deletions auth-center/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.4.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.4.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.4.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.4.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

sftp:
client:
configuration:
host: 172.16.4.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
48 changes: 39 additions & 9 deletions auth-center/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.3.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.3.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.3.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.3.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

sftp:
client:
configuration:
host: 172.16.3.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
48 changes: 39 additions & 9 deletions auth-center/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
# needed to trigger info and endpoint update after restart
startup: ${random.int}
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://localhost:8760/eureka/
defaultZone: http://172.16.2.20:8760/eureka/

spring:
zipkin:
base-url: http://localhost:9411
base-url: http://172.16.2.13:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://172.16.2.10:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
redis:
database: 0
host: 172.16.2.11
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 20
max-idle: 10
max-wait: -1ms
min-idle: 0

logging:
# Configure logging level for SFTP/JSCH
level:
com.jcraft.jsch: INFO

sftp:
client:
configuration:
host: 172.16.2.12
port: 22
user: johnny
password: atmoz@sftp
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
Loading

0 comments on commit 72b6c97

Please sign in to comment.