diff --git a/application-dev.yml b/application-dev.yml new file mode 100644 index 000000000..0e33c5459 --- /dev/null +++ b/application-dev.yml @@ -0,0 +1,25 @@ +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: 123456 + rabbitmq: + host: localhost + port: 5672 + username: msp + password: 123456 + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 +demo: + name: test13 + file: wode \ No newline at end of file diff --git a/msp-auth-dev.yml b/msp-auth-dev.yml new file mode 100644 index 000000000..1b35ef98c --- /dev/null +++ b/msp-auth-dev.yml @@ -0,0 +1,21 @@ +server: + port: 8083 +spring: + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 + security: + user: + name: msp + password: msp + application: + name: msp-auth \ No newline at end of file diff --git a/msp-gateway-dev.yml b/msp-gateway-dev.yml new file mode 100644 index 000000000..518fda7ab --- /dev/null +++ b/msp-gateway-dev.yml @@ -0,0 +1,27 @@ +server: + port: 8085 +spring: + cloud: + gateway: + discovery: + locator: + enabled: true + lower-case-service-id: true + routes: + - id: msp-auth + uri: lb://msp-auth + predicates: + - Path=/auth/** + application: + name: msp-gateway +auth-server: http://localhost:8083 +security: + oauth2: + client: + client-id: msp-gateway + client-secret: msp-gateway + user-authorization-uri: ${auth-server}/oauth/authorize + access-token-uri: ${auth-server}/oauth/token + resource: + jwt: + key-uri: ${auth-server}/oauth/token_key \ No newline at end of file diff --git a/msp-zuul-dev.yml b/msp-zuul-dev.yml new file mode 100644 index 000000000..70ea198bf --- /dev/null +++ b/msp-zuul-dev.yml @@ -0,0 +1,37 @@ +server: + port: 8084 +spring: + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 + security: + user: + name: msp + password: msp + application: + name: msp-zuul +zuul: + routes: + api-a: + path: /api-a/** + serviceId: msp-auth +auth-server: http://localhost:8083 +security: + oauth2: + client: + client-id: msp-zuul + client-secret: msp-zuul + user-authorization-uri: ${auth-server}/oauth/authorize + access-token-uri: ${auth-server}/oauth/token + resource: + jwt: + key-uri: ${auth-server}/oauth/token_key \ No newline at end of file diff --git a/msp/application-dev.yml b/msp/application-dev.yml new file mode 100644 index 000000000..0e33c5459 --- /dev/null +++ b/msp/application-dev.yml @@ -0,0 +1,25 @@ +spring: + redis: + host: 127.0.0.1 + port: 6379 + password: 123456 + rabbitmq: + host: localhost + port: 5672 + username: msp + password: 123456 + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 +demo: + name: test13 + file: wode \ No newline at end of file diff --git a/msp/msp-auth-dev.yml b/msp/msp-auth-dev.yml new file mode 100644 index 000000000..1b35ef98c --- /dev/null +++ b/msp/msp-auth-dev.yml @@ -0,0 +1,21 @@ +server: + port: 8083 +spring: + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 + security: + user: + name: msp + password: msp + application: + name: msp-auth \ No newline at end of file diff --git a/msp/msp-gateway-dev.yml b/msp/msp-gateway-dev.yml new file mode 100644 index 000000000..518fda7ab --- /dev/null +++ b/msp/msp-gateway-dev.yml @@ -0,0 +1,27 @@ +server: + port: 8085 +spring: + cloud: + gateway: + discovery: + locator: + enabled: true + lower-case-service-id: true + routes: + - id: msp-auth + uri: lb://msp-auth + predicates: + - Path=/auth/** + application: + name: msp-gateway +auth-server: http://localhost:8083 +security: + oauth2: + client: + client-id: msp-gateway + client-secret: msp-gateway + user-authorization-uri: ${auth-server}/oauth/authorize + access-token-uri: ${auth-server}/oauth/token + resource: + jwt: + key-uri: ${auth-server}/oauth/token_key \ No newline at end of file diff --git a/msp/msp-zuul-dev.yml b/msp/msp-zuul-dev.yml new file mode 100644 index 000000000..70ea198bf --- /dev/null +++ b/msp/msp-zuul-dev.yml @@ -0,0 +1,37 @@ +server: + port: 8084 +spring: + datasource: + driver-class-name: com.mysql.jdbc.Driver + username: root + password: 123456 + url: jdbc:mysql://127.0.0.1:3306/msp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false + thymeleaf: + cache: true + suffix: .html + prefix: classpath:/templates/ + servlet: + content-type: text/html + encoding: UTF-8 + security: + user: + name: msp + password: msp + application: + name: msp-zuul +zuul: + routes: + api-a: + path: /api-a/** + serviceId: msp-auth +auth-server: http://localhost:8083 +security: + oauth2: + client: + client-id: msp-zuul + client-secret: msp-zuul + user-authorization-uri: ${auth-server}/oauth/authorize + access-token-uri: ${auth-server}/oauth/token + resource: + jwt: + key-uri: ${auth-server}/oauth/token_key \ No newline at end of file diff --git a/respo/config-client-dev.properties b/respo/config-client-dev.properties index 9e0f88e7a..fba3d606b 100644 --- a/respo/config-client-dev.properties +++ b/respo/config-client-dev.properties @@ -1,5 +1,5 @@ -foo = foo version 2 +foo = foo version 12 democonfigclient.message=hello spring io # routes to serviceId