daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. upstream django {
  2.     server 127.0.0.1:8000;
  3. }
  4.  
  5. server {
  6.     listen 80;
  7.     listen 443 ssl;
  8.     server_name ип сервера;
  9.     ssl on;
  10.     ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  11.     ssl_certificate /home/tester/it_robot/webhook_cert.pem;
  12.     ssl_certificate_key /home/tester/it_robot/webhook_pkey.pem;
  13.     charset utf-8;
  14.  
  15.     location / {
  16.         proxy_pass http://127.0.0.1:8000;
  17.         proxy_set_header Host $server_name;
  18.         proxy_set_header X-Real-IP $remote_addr;
  19.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  20.         proxy_set_header X-Forwarded-Protocol $scheme;
  21.         proxy_redirect off;
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top