Skip to content

Commit

Permalink
update conf && doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shevqko committed Jul 18, 2023
1 parent 3ce3bfa commit 1838c22
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 95 deletions.
5 changes: 3 additions & 2 deletions conf/GatwayServer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@
# 接口级别
Test3.TestServer.TestObj:func1|func2|funcn
Test3.HelloServer.HelloObj:test1
# 支持proxy中配置servant别名进行配置
# proxy 中配置的服务servant别名
hello

# obj 别名 + funcName
demo:callTest|getInfo
<exclude>
# 支持服务级别、接口级别
# 服务级别
Expand Down
6 changes: 5 additions & 1 deletion doc/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ IP 黑名单和流控策略, 同时支持 TarsGateway 的三种协议,所以
auth_http_header=X-Token
# 默认不鉴权,匹配上了才鉴权,在匹配上了之后,如果在exclude部分有配置,则不鉴权
<auth_list>
# 支持应用级别、服务级别、接口级别
# 支持应用级别、服务级别、接口级别,其中服务可以是具体的 App.Server, 也可以是 proxy 中配置的servant别名
# 应用级别
Test1.*
# 服务obj级别
Expand All @@ -283,6 +283,10 @@ IP 黑名单和流控策略, 同时支持 TarsGateway 的三种协议,所以
Test3.TestServer.TestObj:func1|func2|funcn
Test3.HelloServer.HelloObj:test1
TestApp.HelloServer.HelloObj
# proxy 中配置的服务servant别名
hello
# obj 别名 + funcName
demo:callTest|getInfo
<exclude>
# 以下情况不需要鉴权
# 支持服务级别、接口级别
Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ gen_server("Base" "GatewayServer")

target_link_libraries(GatewayServer mysqlclient dl)

if(UNIX AND NOT APPLE)
target_link_libraries(GatewayServer -static-libgcc -static-libstdc++)
endif()
# if(UNIX AND NOT APPLE)
# target_link_libraries(GatewayServer -static-libgcc -static-libstdc++)
# endif()
Loading

0 comments on commit 1838c22

Please sign in to comment.