Skip to content

Commit

Permalink
perf($OpenAPI): disable OpenAPI in stage and production
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Feb 3, 2022
1 parent 772cfbb commit b03377d
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/index.html#spring-cloud-consul-config
# 1. Multiple PropertySource instances are created based on the application’s name and the active profiles
# that mimics the Spring Cloud Config order of resolving properties.
# 2. Properties in the config/application folder are applicable to all applications using consul for configuration.

spring:
zipkin:
base-url: http://maf-zipkin:9411
Expand Down Expand Up @@ -43,7 +48,3 @@ minio:
access-key: maf_minio_root_user
secret-key: jm@minio
bucket-name: maf

maf:
configuration:
swagger-enabled: true
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/index.html#spring-cloud-consul-config
# 1. Multiple PropertySource instances are created based on the application’s name and the active profiles
# that mimics the Spring Cloud Config order of resolving properties.
# 2. Properties in the config/application folder are applicable to all applications using consul for configuration.

spring:
zipkin:
base-url: http://localhost:9411
Expand Down Expand Up @@ -43,7 +48,3 @@ minio:
access-key: maf_minio_root_user
secret-key: jm@minio
bucket-name: maf

maf:
configuration:
swagger-enabled: true
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/index.html#spring-cloud-consul-config
# 1. Multiple PropertySource instances are created based on the application’s name and the active profiles
# that mimics the Spring Cloud Config order of resolving properties.
# 2. Properties in the config/application folder are applicable to all applications using consul for configuration.

spring:
zipkin:
base-url: http://maf-zipkin:9411
Expand Down Expand Up @@ -44,6 +49,6 @@ minio:
secret-key: jm@minio
bucket-name: maf

maf:
configuration:
swagger-enabled: false
springdoc:
api-docs:
enabled: false
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/index.html#spring-cloud-consul-config
# 1. Multiple PropertySource instances are created based on the application’s name and the active profiles
# that mimics the Spring Cloud Config order of resolving properties.
# 2. Properties in the config/application folder are applicable to all applications using consul for configuration.

spring:
zipkin:
base-url: http://maf-zipkin:9411
Expand Down Expand Up @@ -44,6 +49,6 @@ minio:
secret-key: jm@minio
bucket-name: maf

maf:
configuration:
swagger-enabled: false
springdoc:
api-docs:
enabled: false
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/index.html#spring-cloud-consul-config
# 1. Multiple PropertySource instances are created based on the application’s name and the active profiles
# that mimics the Spring Cloud Config order of resolving properties.
# 2. Properties in the config/application folder are applicable to all applications using consul for configuration.

spring:
zipkin:
base-url: http://maf-zipkin:9411
Expand Down Expand Up @@ -43,7 +48,3 @@ minio:
access-key: maf_minio_root_user
secret-key: jm@minio
bucket-name: maf

maf:
configuration:
swagger-enabled: true
4 changes: 0 additions & 4 deletions maf-mis/src/main/resources/application-development-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ redis:
- host: maf-redis-slave-1
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: true
4 changes: 0 additions & 4 deletions maf-mis/src/main/resources/application-development-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ redis:
- host: localhost
port: 6380
password: maf@redis

maf:
configuration:
swagger-enabled: true
4 changes: 0 additions & 4 deletions maf-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ redis:
- host: maf-redis-slave-1
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: false
4 changes: 0 additions & 4 deletions maf-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ redis:
- host: maf-redis-slave-1
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: false
4 changes: 0 additions & 4 deletions maf-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ redis:
- host: maf-redis-slave-1
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ redis:
port: 6380
password: maf@redis

maf:
configuration:
swagger-enabled: true

minio:
endpoint: http://localhost
port: 9900
Expand Down
4 changes: 0 additions & 4 deletions oss-center/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ redis:
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: false

minio:
endpoint: http://maf-minio
port: 9000
Expand Down
4 changes: 0 additions & 4 deletions oss-center/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ redis:
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: false

minio:
endpoint: http://maf-minio
port: 9000
Expand Down
4 changes: 0 additions & 4 deletions oss-center/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ redis:
port: 6379
password: maf@redis

maf:
configuration:
swagger-enabled: true

minio:
endpoint: http://maf-minio
port: 9000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ public class MafConfigurationProperties {
*/
@NotBlank
private String includedPackageForHttpApiScan;
/**
* Swagger switch. true: enabled; false: disabled.
*/
@NotNull
private Boolean swaggerEnabled = Boolean.TRUE;

/**
* Flatten ignored urls string [ ].
Expand Down

0 comments on commit b03377d

Please sign in to comment.