Advertisement
Guest User

Untitled

a guest
Sep 5th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.05 KB | None | 0 0
  1.   1 upstream django {                                                                      
  2.   3     server 127.0.0.1:8000;
  3.   4 }
  4.   5
  5.   6
  6.   7 server {
  7.   8     listen 443 ssl;
  8.   9     server_name sitename.info www.sitename.info host_ip;
  9.  10     ssl_certificate /etc/letsencrypt/live/chitaikra.info/fullchain.pem;
  10.  11     ssl_certificate_key /etc/letsencrypt/live/chitaikra.info/privkey.pem;
  11.  12
  12.  13
  13.  14     charset    utf-8;
  14.  15
  15.  16     client_max_body_size 75M;
  16.  17
  17.  18     location /static {
  18.  19     alias /home/path/to/project/static;
  19.  20     }
  20.  21     location /repodata {
  21.  22     alias /var/www/html/repodata;
  22.  23     }
  23.  24
  24.  25     location / {
  25.  26     uwsgi_pass  django;
  26.  27         include     /home/path/to/project/uwsgi_params;
  27.  28         proxy_pass      http://localhost:8000/;
  28.  29     #proxy_redirect    off;
  29.  30
  30.  31     #proxy_set_header   Host              $http_host;
  31.  32     #proxy_set_header   X-Real-IP         $remote_addr;
  32.  33     #proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
  33.  34     }
  34.  35 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement