说明书

manual_nginx.conf 1.2KB

    # manual_nginx.conf # the upstream component nginx needs to connect to upstream manual { # server unix:///home/paiai/work/manual/manual/deploy/manual.sock; # for a file socket server 127.0.0.1:8888; # for a web port socket (we'll use this first) } # configuration of the server server { # the port your site will be served on listen 80; # the domain name it will serve for server_name .a.com; # substitute your machine's IP address or FQDN charset utf-8; # max upload size client_max_body_size 75M; # adjust to taste # JS接口安全域名 & 业务域名 验证 location /xxx.txt { alias /home/paiai/work/manual/docs/we/xxx.txt; } # Django media location /media { alias /home/paiai/work/manual/media; # your Django project's media files - amend as required } location /static { alias /home/paiai/work/manual/collect_static; # your Django project's static files - amend as required } # Finally, send all non-media requests to the Django server. location / { # uwsgi_pass manual; proxy_pass http://manual; include /home/paiai/work/manual/manual/deploy/uwsgi_params; # the uwsgi_params file you installed } }