Skip to content

Commit

Permalink
1、更新nginx配置说明
Browse files Browse the repository at this point in the history
  • Loading branch information
welliamcao committed Oct 2, 2021
1 parent 07f14ac commit de69ecd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpsManage/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
SECRET_KEY = 'i)&2z^y%0w1o-%h3da1*$!9@5hx^dzp-_w&rx&4k6ml)l24&ev'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ['*']

REDSI_KWARGS_LPUSH = {"host":config.get('redis', 'host'),'port':config.get('redis', 'port'),'db':config.get('redis', 'ansible_db'),'password':config.get('redis', 'password')}
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,18 @@ server {
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/apply/icon {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /mnt/OpsManage/upload/apply/icon/;
}
}
# nginx -t #检查配置文件
# service start nginx #CentOS 6
Expand Down

0 comments on commit de69ecd

Please sign in to comment.