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