events { worker_connections 1024; } http { sendfile on; server_tokens off; gzip on; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/atom+xml; # Configuration for the server server { # Running port listen 80; # Add DNS resolver resolver DNS_PLACEHOLDER; set $backend "https://ows-accounting.theorchard.io:443"; # Proxying the connections connections location / { proxy_pass $backend; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; } location /hello/ { return 200; add_header Content-Type text/plain; } } } daemon off;