Skip to content

Commit

Permalink
docs: documentation updates
Browse files Browse the repository at this point in the history
Signed-off-by: kl7sn <[email protected]>
  • Loading branch information
kl7sn committed Feb 8, 2022
1 parent 4d49a12 commit 99d1df5
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/dataflow.md → docs/1.1 dataflow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## 数据采集流程
## Data Acquisition Process

1. Data acquisition with Fluent Bit, write data to Kafka
2. ClickHouse consumes Kafka, then write data to the stream table
Expand Down
54 changes: 54 additions & 0 deletions docs/1.2 domain-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 自定义域名配置

配置自定义域名为 xxx.com

1. 调整服务配置

```
[app]
rootURL = "http://xxx.com"
```

2. NGINX 配置调整,可以开启 gzip
```bash
server {
listen 80;
server_name xxx.com;

access_log /Users/duminxiang/nginx/xxx.com.access.log;
error_log /Users/duminxiang/nginx/xxx.com.error.log;

# 开启gzip
gzip on;

# 启用gzip压缩的最小文件,小于设置值的文件将不会压缩
gzip_min_length 1k;

# gzip 压缩级别,1-9,数字越大压缩的越好,也越占用CPU时间,后面会有详细说明
gzip_comp_level 1;

# 进行压缩的文件类型。javascript有多种形式。其中的值可以在 mime.types 文件中找到。
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png application/vnd.ms-fontobject font/ttf font/opentype font/x-woff image/svg+xml;

# 是否在http header中添加Vary: Accept-Encoding,建议开启
gzip_vary on;

# 禁用IE 6 gzip
gzip_disable "MSIE [1-6]\.";

# 设置压缩所需要的缓冲区大小
gzip_buffers 32 4k;

# 设置gzip压缩针对的HTTP协议版本,没做负载的可以不用
# gzip_http_version 1.0;

location / {
proxy_pass http://127.0.0.1:9001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
}
```

38 changes: 38 additions & 0 deletions docs/1.2 domain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Custom Domain

Configure the custom domain name as xxx.com

1. Adjust the service configuration

```
[app]
rootURL = "http://xxx.com"
```

2. NGINX configuration adjustment, gzip can be enabled
```bash
server {
listen 80;
server_name xxx.com;

access_log /Users/duminxiang/nginx/xxx.com.access.log;
error_log /Users/duminxiang/nginx/xxx.com.error.log;

gzip on;
gzip_min_length 1k;
gzip_comp_level 1;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png application/vnd.ms-fontobject font/ttf font/opentype font/x-woff image/svg+xml;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_buffers 32 4k;

location / {
proxy_pass http://127.0.0.1:9001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
}
```

Binary file removed docs/images/mogoprocess.png
Binary file not shown.

0 comments on commit 99d1df5

Please sign in to comment.