Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
2dfbbd38
Commit
2dfbbd38
authored
Sep 17, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove descriptions related to COMAKE
parent
7e2e25df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
http_service.md
docs/cn/http_service.md
+1
-7
ub_client.md
docs/cn/ub_client.md
+1
-1
No files found.
docs/cn/http_service.md
View file @
2dfbbd38
...
...
@@ -295,13 +295,7 @@ if (encoding != NULL && *encoding == "gzip") {
# 开启HTTPS
要开启HTTPS,首先确保代码依赖了最新的openssl库
```
python
CONFIGS
(
'third-64/openssl@1.0.2.6123'
)
```
因为大部分机器自带的openssl版本很旧,有严重的安全漏洞,支持的加密算法也少,违背了开启SSL的初衷
然后在设置ServerOptions中的SSLOptions
要开启HTTPS,首先确保代码依赖了最新的openssl库。如果openssl版本很旧,会有严重的安全漏洞,支持的加密算法也少,违背了开启SSL的初衷。然后设置ServerOptions中的SSLOptions
```
c++
// 证书结构
struct
CertInfo
{
...
...
docs/cn/ub_client.md
View file @
2dfbbd38
...
...
@@ -149,7 +149,7 @@ server端由public/ubrpc搭建,request/response使用idl文件描述字段,
**步骤:**
1.
依赖
public
/
baidu
-
rpc
-
ub
模块,
在
COMAKE
中增加依赖:`
CONFIGS
(
'public/baidu-rpc-ub@ci-base'
)
。`
这个模块是
brpc
的扩展,不需要的用户不会依赖
idl
/
mcpack
/
compack
等模块。
baidu
-
rpc
-
ub
只包含扩展代码,
brpc
中的新特性会自动体现在这个模块中。
1.
依赖
public
/
baidu
-
rpc
-
ub
模块,这个模块是
brpc
的扩展,不需要的用户不会依赖
idl
/
mcpack
/
compack
等模块。
baidu
-
rpc
-
ub
只包含扩展代码,
brpc
中的新特性会自动体现在这个模块中。
2.
编写一个
proto
文件,其中定义了
service
,名字和
idl
中的相同,但请求类型必须是
baidu.rpc.UBRequest
,回复类型必须是
baidu.rpc.UBResponse
。这两个类型定义在
brpc
/
ub.proto
中,使用时得
import
。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment