SHARE
TWEET

Untitled

a guest Sep 20th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. upstream app_server {
  2.        server web:8000 fail_timeout=0;
  3.    }
  4.  
  5. server {
  6.   listen       *:443 ssl default_server;
  7.   server_name  _;
  8.  
  9.   keepalive_timeout 200s;
  10.  
  11.   ssl on;
  12.  
  13.   ssl_certificate           /etc/pki/tls/certs/selfsigned.crt;
  14.   ssl_certificate_key       /etc/pki/tls/private/selfsigned.key;
  15.   ssl_session_cache         shared:SSL:10m;
  16.   ssl_session_timeout       5m;
  17.   ssl_protocols             TLSv1 TLSv1.1 TLSv1.2;
  18.   ssl_ciphers               ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA!3DES;
  19.   ssl_prefer_server_ciphers on;
  20.  
  21.   index  index.html index.htm index.php;
  22.  
  23.   location /static/ {
  24.  
  25.     alias /opt/skynet/skynet/static/;
  26.   }
  27.  
  28.   location / {
  29.  
  30.     proxy_pass            http://app_server;
  31.     proxy_set_header      Host $host;
  32.     proxy_set_header      X-Real-IP $remote_addr;
  33.     proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;
  34.     proxy_read_timeout 300s;
  35.  
  36.   }
  37. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top