java - https proxy for GAE dev server -


i'm developing app gae. gae dev server doesn't support https, managed create https proxy using nginx. problem have third party service uses app, can make requests using https, i.e. can make request https://localhost, won't proceed http://localhost. inside app use library of service internally uses req.getrequesturl() httpservletrequest. so, request: request (to https: //localhost) -> nginx proxy -> request (to http: //localhost) -> dev gae server. , req.getrequesturl() returns "http: //localhost" doesn't match in request field (it's special field in request specified protocol of service) , library throws exception. can do? nginx config:

 server {           listen              443 ssl; # ssl directive tells nginx decrypt                                  # traffic    server_name         localhost;    ssl_certificate     ls.crt; # certificate file    ssl_certificate_key ls.key; # private key file    location / {          proxy_pass http://localhost:8080;           } } 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -