nginx.tmpl 707 Bytes
Newer Older
Timothee Gosselin's avatar
Timothee Gosselin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
user nginx;

events {
  worker_connections 768;
}

http {
  upstream backend {
      server ${SERVER_HOST}:${SERVER_PORT};
  }
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    # Sets the path, format, and configuration for a buffered log write
    log_format compression '$remote_addr - $remote_user [$time_local] '
        '"$request" $status $upstream_addr '
        '"$http_referer" "$http_user_agent"';

    server_tokens off;

    server {
        listen 80;
        access_log /var/log/nginx/access.log compression;

        location / {
            proxy_pass        http://tazendra.caltech.edu/~azurebrd/cgi-bin/forms/datatype_objects.cgi;
        }
    }
}