Play Framework proxy setting Get Client IP from Nginx conf/application.conf file: # If you need to set proxy params for WS requests # http.proxyHost = localhost # http.proxyPort = 3128 # http.proxyUser = jojo # http.proxyPassword = jojo XForwardedSupport=127.0.0.1 Nginx xxx.hosts file: location ~ .* { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://127.0.0.1:9000; } |
B04.JEE Frameworks > 03.Play Framework >