diff --git a/api-portal/src/main/resources/application-production.yml b/api-portal/src/main/resources/application-production.yml index f513aad3..989017fa 100644 --- a/api-portal/src/main/resources/application-production.yml +++ b/api-portal/src/main/resources/application-production.yml @@ -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 diff --git a/api-portal/src/main/resources/application-stage.yml b/api-portal/src/main/resources/application-stage.yml index f513aad3..423d2ebd 100644 --- a/api-portal/src/main/resources/application-stage.yml +++ b/api-portal/src/main/resources/application-stage.yml @@ -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 diff --git a/api-portal/src/main/resources/application-test.yml b/api-portal/src/main/resources/application-test.yml index f513aad3..36c7664c 100644 --- a/api-portal/src/main/resources/application-test.yml +++ b/api-portal/src/main/resources/application-test.yml @@ -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 diff --git a/auth-center/src/main/resources/application-production.yml b/auth-center/src/main/resources/application-production.yml index f513aad3..eb9485e6 100644 --- a/auth-center/src/main/resources/application-production.yml +++ b/auth-center/src/main/resources/application-production.yml @@ -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 diff --git a/auth-center/src/main/resources/application-stage.yml b/auth-center/src/main/resources/application-stage.yml index f513aad3..0ea51375 100644 --- a/auth-center/src/main/resources/application-stage.yml +++ b/auth-center/src/main/resources/application-stage.yml @@ -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 diff --git a/auth-center/src/main/resources/application-test.yml b/auth-center/src/main/resources/application-test.yml index f513aad3..3b695c54 100644 --- a/auth-center/src/main/resources/application-test.yml +++ b/auth-center/src/main/resources/application-test.yml @@ -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 diff --git a/exercise-mis/src/main/resources/application-production.yml b/exercise-mis/src/main/resources/application-production.yml index f513aad3..4c566437 100644 --- a/exercise-mis/src/main/resources/application-production.yml +++ b/exercise-mis/src/main/resources/application-production.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/exercise-mis/src/main/resources/application-stage.yml b/exercise-mis/src/main/resources/application-stage.yml index f513aad3..30f315e8 100644 --- a/exercise-mis/src/main/resources/application-stage.yml +++ b/exercise-mis/src/main/resources/application-stage.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/exercise-mis/src/main/resources/application-test.yml b/exercise-mis/src/main/resources/application-test.yml index f513aad3..c8e5dec9 100644 --- a/exercise-mis/src/main/resources/application-test.yml +++ b/exercise-mis/src/main/resources/application-test.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/gateway/src/main/resources/application-development-docker.yml b/gateway/src/main/resources/application-development-docker.yml index ee714146..40a3418a 100644 --- a/gateway/src/main/resources/application-development-docker.yml +++ b/gateway/src/main/resources/application-development-docker.yml @@ -5,5 +5,5 @@ eureka: custom: configuration: - # Leave `allowed-application-list` empty allowed-application-list: + - api-portal diff --git a/gateway/src/main/resources/application-production.yml b/gateway/src/main/resources/application-production.yml index 61d981e1..7cc70599 100644 --- a/gateway/src/main/resources/application-production.yml +++ b/gateway/src/main/resources/application-production.yml @@ -1,17 +1,9 @@ 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/ custom: configuration: - # Production swagger can only see "api-portal" allowed-application-list: - - "api-portal" + - api-portal diff --git a/gateway/src/main/resources/application-stage.yml b/gateway/src/main/resources/application-stage.yml index 242b7a54..2fb918ba 100644 --- a/gateway/src/main/resources/application-stage.yml +++ b/gateway/src/main/resources/application-stage.yml @@ -1,17 +1,9 @@ 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/ custom: configuration: - # Stage swagger can only see "api-portal" allowed-application-list: - - "api-portal" + - api-portal diff --git a/gateway/src/main/resources/application-test.yml b/gateway/src/main/resources/application-test.yml index 147f3fa0..7cdeb8b5 100644 --- a/gateway/src/main/resources/application-test.yml +++ b/gateway/src/main/resources/application-test.yml @@ -1,16 +1,9 @@ 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/ custom: configuration: - # Leave `allowed-application-list` empty allowed-application-list: + - api-portal diff --git a/muscle-mis/src/main/resources/application-production.yml b/muscle-mis/src/main/resources/application-production.yml index f513aad3..4c566437 100644 --- a/muscle-mis/src/main/resources/application-production.yml +++ b/muscle-mis/src/main/resources/application-production.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/muscle-mis/src/main/resources/application-stage.yml b/muscle-mis/src/main/resources/application-stage.yml index f513aad3..30f315e8 100644 --- a/muscle-mis/src/main/resources/application-stage.yml +++ b/muscle-mis/src/main/resources/application-stage.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/muscle-mis/src/main/resources/application-test.yml b/muscle-mis/src/main/resources/application-test.yml index f513aad3..c8e5dec9 100644 --- a/muscle-mis/src/main/resources/application-test.yml +++ b/muscle-mis/src/main/resources/application-test.yml @@ -1,15 +1,20 @@ 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 + +logging: + # Configure logging level for SFTP/JSCH + level: + com.jcraft.jsch: INFO diff --git a/service-registry/src/main/resources/application-production.yml b/service-registry/src/main/resources/application-production.yml index e69de29b..690151c5 100644 --- a/service-registry/src/main/resources/application-production.yml +++ b/service-registry/src/main/resources/application-production.yml @@ -0,0 +1,4 @@ +eureka: + client: + service-url: + defaultZone: http://${spring.cloud.client.ip-address}:${server.port}/eureka/ diff --git a/service-registry/src/main/resources/application-stage.yml b/service-registry/src/main/resources/application-stage.yml index e69de29b..690151c5 100644 --- a/service-registry/src/main/resources/application-stage.yml +++ b/service-registry/src/main/resources/application-stage.yml @@ -0,0 +1,4 @@ +eureka: + client: + service-url: + defaultZone: http://${spring.cloud.client.ip-address}:${server.port}/eureka/ diff --git a/service-registry/src/main/resources/application-test.yml b/service-registry/src/main/resources/application-test.yml index e69de29b..690151c5 100644 --- a/service-registry/src/main/resources/application-test.yml +++ b/service-registry/src/main/resources/application-test.yml @@ -0,0 +1,4 @@ +eureka: + client: + service-url: + defaultZone: http://${spring.cloud.client.ip-address}:${server.port}/eureka/ diff --git a/spring-boot-admin/src/main/resources/application-production.yml b/spring-boot-admin/src/main/resources/application-production.yml index 55095458..57057aea 100644 --- a/spring-boot-admin/src/main/resources/application-production.yml +++ b/spring-boot-admin/src/main/resources/application-production.yml @@ -1,11 +1,4 @@ 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/ diff --git a/spring-boot-admin/src/main/resources/application-stage.yml b/spring-boot-admin/src/main/resources/application-stage.yml index 55095458..e886b05f 100644 --- a/spring-boot-admin/src/main/resources/application-stage.yml +++ b/spring-boot-admin/src/main/resources/application-stage.yml @@ -1,11 +1,4 @@ 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/ diff --git a/spring-boot-admin/src/main/resources/application-test.yml b/spring-boot-admin/src/main/resources/application-test.yml index 55095458..0e84171a 100644 --- a/spring-boot-admin/src/main/resources/application-test.yml +++ b/spring-boot-admin/src/main/resources/application-test.yml @@ -1,11 +1,4 @@ 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/