You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/12/15 14:02:32 UTC

[GitHub] [incubator-apisix] chnliyong commented on issue #973: Add protocol header for upstream service

chnliyong commented on issue #973: Add protocol header for upstream service
URL: https://github.com/apache/incubator-apisix/issues/973#issuecomment-565812530
 
 
   > I think you can use the proxy-rewrite plugin.
   
   I thought this is a very commonly requirement if `apisix` is used as a `reverse proxy` to offer ssl offloading, and configure the `proxy-rewrite`  for all routes is tedious.
   We may add a option such as `enable_protocol_forwarded` and `protocol_forwarded_header` in `config.yaml` if we don't  want this as default.  Actually, I would like this be default.
   
   ```nginx
         proxy_set_header ....
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header ....
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services