跳转至

配置


基础

server {
    # 暴露给外部访问的端口
    listen 80;

    # 域名
    server_name 域名;
        charset utf-8;

    # 开启https
    ssl on;
    ssl_certificate /etc/nginx/conf.d/full_chain.pem;
    ssl_certificate_key /etc/nginx/conf.d/private.key;
}

uwsgi

server{
    ...
    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:8995; # 内部uwsgi端口
        client_max_body_size 50m;
    }
    ...
}