mirror of
https://github.com/chaitin/SafeLine.git
synced 2026-02-10 02:33:35 +08:00
feat: add faq for customizing nginx config
This commit is contained in:
@@ -139,3 +139,17 @@ server {
|
||||
```shell
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
```
|
||||
|
||||
修改完成后运行命令检查配置文件
|
||||
```shell
|
||||
docker exec safeline-tengine nginx -t
|
||||
```
|
||||
检查应显示
|
||||
```shell
|
||||
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
|
||||
nginx: configuration file /etc/nginx/nginx.conf test is successful
|
||||
```
|
||||
最后应用配置文件
|
||||
```shell
|
||||
docker exec safeline-tengine nginx -s reload
|
||||
```
|
||||
Reference in New Issue
Block a user