浏览代码

Added pemc-uat-internal profiles

mlnicolas 2 年之前
父节点
当前提交
20ea5b6e01
共有 2 个文件被更改,包括 78 次插入0 次删除
  1. 65 0
      crss-edge/crss-edge-pemc-uat-internal.yml
  2. 13 0
      crss-uaa/crss-uaa-pemc-uat-internal.yml

+ 65 - 0
crss-edge/crss-edge-pemc-uat-internal.yml

@@ -0,0 +1,65 @@
+zuul:
+  host.socket-timeout-millis: 60000
+  ignoredServices: '*'
+  sensitiveHeaders: ''
+  ignoredHeaders: Access-Control-Allow-Credentials, Access-Control-Allow-Origin
+  routes:
+    admin:
+      path: /admin/**
+      serviceId: admin-service
+    reg:
+      path: /reg/**
+      serviceId: registration-service
+    uaa:
+      path: /uaa/**
+      stripPrefix: false
+      serviceId: crss-uaa
+admin-service:
+  ribbon:
+    listOfServers: http://internalcrssadmin-service.marathon.l4lb.thisdcos.directory:8080
+registration-service:
+  ribbon:
+    listOfServers: http://internalcrssregistration-service.marathon.l4lb.thisdcos.directory:8080
+crss-uaa:
+  ribbon:
+    listOfServers: http://internalcrsscrss-uaa.marathon.l4lb.thisdcos.directory:9999
+
+hystrix:
+  command:
+    default:
+      execution:
+        isolation:
+          thread:
+            timeoutInMilliseconds: 300000
+#zuul.host.socket-timeout-millis: 30000
+
+ribbon:
+  ConnectTimeout: 300000
+  ReadTimeout: 600000
+  maxAutoRetries: 5
+  MaxAutoRetriesNextServer: 10
+
+# NOTE: since the server is undertow who serve the static pages, the uploads config must be set here also
+#       if size was modified please update also the registration's application.yml
+spring:
+  profiles:
+    include: client-sec
+  http:
+    multipart:
+      enabled: true
+      maxFileSize: "25Mb"
+      maxRequestSize: "25Mb"
+      fileSizeThreshold: "5Mb"
+      resolveLazily: false
+  resources:
+    chain:
+      gzipped: true
+server:
+  compression:
+    enabled: true
+    min-response-size: 1
+  undertow:
+    direct-buffers: true # Instruct JVM to use native I/O operations on the buffers
+    buffer-size: 16384 # Socket buffer size. Default is 16kb
+    io-threads: 16 # The number of I/O threads created for non-blocking tasks. (#CPU * 2)
+    worker-threads: 128 # CPU * 16

+ 13 - 0
crss-uaa/crss-uaa-pemc-uat-internal.yml

@@ -0,0 +1,13 @@
+crss:
+  security:
+    oauth2:
+      api-gateway: https://crss-dev.wesmsys.local
+      default-redirect-uri: https://crss-dev.wesmsys.local
+      auto-approve: true
+      authorized-grant-types: authorization_code,refresh_token,password
+      access-token-validity-second: 3600
+      registered-redirect-uris: https://crss-dev.wesmsys.local
+      client:
+        client-id: crss
+        client-secret: crsssecret
+        scope: openid