Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove authored Mar 5, 2021
1 parent b2a8810 commit ed2ee2b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Nginx版本:`1.11.5`
- [防盗图配置](#防盗图配置)
- [屏蔽.git等文件](#屏蔽git等文件)
- [域名路径加不加需要都能正常访问](#域名路径加不加需要都能正常访问)
- [cockpit](#cockpit)
- [错误问题](#错误问题)
- [精品文章参考](#精品文章参考)

Expand Down Expand Up @@ -1431,6 +1432,36 @@ if ($rule_1 = "21"){
}
```

### cockpit

```nginx
server{
    listen 80;
    server_name cockpit.xxxxxxx.com;
    return 301 https://$server_name$request_uri;
}
server {
    listen 443 ssl;
    server_name cockpit.xxxxxxx.com;
    #ssl on;
    ssl_certificate /etc/nginx/cert/cockpit.xxxxxxx.com.pem;
    ssl_certificate_key /etc/nginx/cert/cockpit.xxxxxxx.com.key;
    location / {
        root /;
        index index.html;
        proxy_redirect off;
        proxy_pass http://websocket;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
    }
}
```

## 错误问题

```bash
Expand Down

0 comments on commit ed2ee2b

Please sign in to comment.