Skip to content

HOW TO: Configure Ngnix to expose Pytomation over SSL.

Dustin S edited this page Apr 25, 2015 · 1 revision

Requirements

  • Ngnix
  • SSL Keys and Cert

Example configuration

  server {
          listen 443;
          server_name pyto.example.org;
  
     location / {
                          rewrite ^/(.*) /$1 break;
                          proxy_pass http://10.0.0.0:8080/;
                          proxy_redirect off;
                          proxy_set_header Host $host;
                          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                          proxy_buffering off;
     }
  
     ssl on;
     ssl_certificate /etc/ssl/nginx/nginx.pem;
     ssl_certificate_key /etc/ssl/nginx/nginx.key;
     ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
     ssl_prefer_server_ciphers on;
     ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
    }