lua - Receive traffic from specific FQDN in NGINX -
so, here's thing. want allow connections specific fqdn (not ip) in marathon i.e. myapp.marathon.mesos using nginx , block other connections. i'm aware lua module in nginx capable of doing such things wandering if there's in built in nginx so.
my intention in nginx.conf:
server { listen 6600; myplatform.marathon.mesos; ssl off; location / { proxy_pass http://localhost:5618/; proxy_http_version 1.1; proxy_set_header host $host; proxy_cache_bypass $http_upgrade; proxy_set_header x-forwarded-port $server_port; proxy_set_header x-forwarded-proto $http_x_forwarded_proto; proxy_set_header host $http_host; proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for; allow myapp.marathon.mesos; # allow fqdn deny all; # restrict } }
Comments
Post a Comment