server {
listen 8005;
server_name xx.16.18.2 #有域名填域名,没有就写自己的公网IP
charset UTF-8;
access_log /var/log/nginx/myweb_access.log;
error_log /var/log/nginx/myweb_error.log;
client_max_body_size 800M;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8887;
uwsgi_read_timeout 10;
}
location /static {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias myproject/static/;
}
}
nginx
于 2024-04-10 15:36:30 首次发布