Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
修改README.md文件中的nginx配置,存在安全漏洞。
  • Loading branch information
welliamcao committed Nov 17, 2021
1 parent c2a3d06 commit 9cd6b1b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Expand Up @@ -217,25 +217,19 @@ server {
proxy_set_header Connection "upgrade";
proxy_pass http://192.168.1.233:8000$request_uri;
}
location /static {
location /static/ {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /mnt/OpsManage/static/;
}
location /media/avatar {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /mnt/OpsManage/upload/avatar/;
}
location /media/navbar {
location /media/navbar/ {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /srv/OpsManage/upload/navbar/;
}
location /media/apply/icon {
location /media/apply/icon/ {
expires 30d;
autoindex on;
add_header Cache-Control private;
Expand Down

0 comments on commit 9cd6b1b

Please sign in to comment.