title: Nginx reverse proxy config whitelist IP
body: <p>I am using Nginx reverse proxy with Kubernetes services. Config is following:</p>
  
  <pre><code>    events {
      }
      http {
            upstream my-service-3000 {
                server my-service:3000;
            }
          server {
                listen 443 ssl;
                server_name myserver.net;
                ssl_certificate     /key.pem;
                ssl_certificate_key /key.pem;
                location / {
                      allow myIP;
                      deny all;
                      proxy_pass http://my-service-3000;
                }
          }
          server {
                ...
          }
      }
  </code></pre>
  
  <p>It works fine (doing reverse proxy, terminating ssl, changing port, finding Kubernetes service), till the moment I try whitelist only my IP. When I try to access service via https - I got 403 from Nginx. I've tried to move around allow/deny commands, but it do not help. Any suggestions where could be the problem?<br>
  Also I am behind proxy by my self - so I am using my external organisation IP.</p>