Skip to content

NGINX Config

Jason Kiesling edited this page Jun 19, 2019 · 3 revisions
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name 10.91.78.125;
    return 301 https://$host$request_uri;
}

server {
    listen 443;
    server_name 10.91.77.39;
    ssl on;
    ssl_certificate     /etc/ssl/bundle.crt;
    ssl_certificate_key  /etc/ssl/cs.uml.edu.key;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    location / {
        proxy_set_header   X-Forwarded-For $remote_addr;
        proxy_set_header   Host $http_host;
        proxy_pass         "http://127.0.0.1:1337";
    }
}