From 8b493b18064ae1b3f24e8360e77cf44a9646028e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: Fri, 10 Jun 2022 16:29:40 +0800
Subject: [PATCH] Add new file

---
 techhero-framework-gateway-local | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
 create mode 100644 techhero-framework-gateway-local

diff --git a/techhero-framework-gateway-local b/techhero-framework-gateway-local
new file mode 100644
index 0000000..89f3785
--- /dev/null
+++ b/techhero-framework-gateway-local
@@ -0,0 +1,108 @@
+spring:
+  redis:
+    database: 10
+    host: test-env
+    port: 6379
+    password: techhero
+    timeout: 0
+    pool:
+      max-active: 8
+      max-wait: -1
+      max-idle: 8
+      min-idle: 0
+  rabbitmq:
+    host: dev-env
+    port: 5672
+    username: techhero
+    password: techhero
+    virtual-host: /framework
+    listener:
+      simple:
+        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
+    publisher-confirms: true #确认消息已发送到交换机(Exchange)
+    publisher-returns: true #确认消息已发送到队列(Queue)
+zuul:
+#  ratelimit:
+  #    behind-proxy: true
+  #    default-policy:
+  #      limit: 200
+  #      type: origin
+  #      refresh-interval: 10
+  #    enabled: true
+
+  host:
+    connect-timeout-millis: 150000
+    socket-timeout-millis: 150000
+    max-total-connections: 500
+  ignoredServices: '*'
+
+ribbon:
+  ReadTimeout: 10000
+  ConnectTimeout: 10000
+  eureka:
+    enabled: true
+  Httpclient:
+    enabled: false
+  OkHttp:
+    enabled: true
+  eager-load:
+    enabled: true
+    clients: techhero-framework-config,techhero-framework-eureka,techhero-framework-auth,techhero-platform-exam,techhero-platform-system,techhero-business-track,techhero-business-command,techhero-business-transdata
+
+hystrix:
+  command:
+    default:
+      execution:
+        timeout:
+          enabled: true
+        isolation:
+          thread:
+            #配置hystrix的超时时间,要大于(RibbonReadTimeout + RibbonConnectTimeout) * (MaxAutoRetries + 1) * (MaxAutoRetriesNextServer + 1)
+            timeout-in-milliseconds: 80000
+            strategy: SEMAPHORE
+  thread-pool:
+    default:
+      coreSize: 10
+      maxQueueSize: 1000
+      queueSizeRejectionThreshold: 800
+    circuitBreaker:
+      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
+    fallback:
+      isolation:
+        semaphore:
+          maxConcurrentRequests: 50 #回退线程数量
+security:
+  sessions: stateless
+  oauth2:
+    client:
+      client-id: gateway_client
+      client-secret: techhero
+    resource:
+      jwt:
+        key-uri: http://127.0.0.1:15803/oauth/token_key #解析jwt令牌所需要密钥的地址
+        #key-value: techhero
+    authorization:
+      check-token-access: http://techhero-framework-oauth/oauth/check_token
+gateway:
+  allowed:
+    origins:
+      - '*'
+      - http://127.0.0.1:8084
+      - http://127.0.0.1:15801
+      - https://account.aliyun.com
+      - https://datav.aliyun.com
+      - http://datav.aliyun.com
+      - http://cdn-service-datav.aliyun.com
+ignore:
+  urls:
+    - /*/open/**
+    - /swagger/api-docs
+    - /swagger-resources/**
+    - /swagger-ui.html
+    - /*/v2/api-docs
+    - /webjars/**
+    - /auth/**
+    - /oss/**
+    - /system/db/getUserListPage/**
+    - /exam/dc/rest/dcKsjhb/getExamPlan
+    - /system/vc/code
--
libgit2 0.26.0