SHARE
TWEET

Untitled

mindrunner Feb 11th, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  server {
  2.         server_name edx.domain.com preview.edx.domain.com studio.edx.domain.com;
  3.         listen 80 ;
  4.         access_log /var/log/nginx/access.log vhost;
  5.         return 301 https://$host$request_uri;
  6. }
  7. server {
  8.         server_name edx.domain.com preview.edx.domain.com studio.edx.domain.com;
  9.         listen 443 ssl http2 ;
  10.         access_log /var/log/nginx/access.log vhost;
  11.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  12.         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;
  13.         ssl_prefer_server_ciphers on;
  14.         ssl_session_timeout 5m;
  15.         ssl_session_cache shared:SSL:50m;
  16.         ssl_certificate /etc/nginx/certs/edx.domain.com.crt;
  17.         ssl_certificate_key /etc/nginx/certs/edx.domain.com.key;
  18.         ssl_dhparam /etc/nginx/certs/edx.domain.com.dhparam.pem;
  19.         add_header Strict-Transport-Security "max-age=31536000";
  20.         include /etc/nginx/vhost.d/default;
  21.         server_tokens off;
  22.         location / {
  23.             proxy_set_header X-Forwarded-Proto $scheme;
  24.             proxy_set_header X-Forwarded-Port $server_port;
  25.             proxy_set_header X-Forwarded-For $remote_addr;
  26.             proxy_set_header Host $http_host;
  27.             proxy_redirect off;
  28.             proxy_pass http://xxx.xxx.xxx.xxx:65080;
  29.         }
  30. }
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