Эх сурвалжийг харах

[DC] add dc profiles to test on Prod

mlnicolas 2 жил өмнө
parent
commit
0d8b8c79a0

+ 53 - 0
crss-edge/crss-edge-dc.yml

@@ -0,0 +1,53 @@
+zuul:
+  host.socket-timeout-millis: 60000
+  ignoredServices: '*'
+  sensitiveHeaders: ''
+  ignoredHeaders: Access-Control-Allow-Credentials, Access-Control-Allow-Origin
+  routes:
+    uaa:
+      path: /uaa/**
+      stripPrefix: false
+      serviceId: crss-uaa
+crss-uaa:
+  ribbon:
+    listOfServers: http://dccrsscrss-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-dc.yml

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