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 2022/12/13 05:23:18 UTC

[GitHub] [apisix] wavemoroc001 opened a new issue, #8508: help request: How to set header in apisix ?

wavemoroc001 opened a new issue, #8508:
URL: https://github.com/apache/apisix/issues/8508

   ### Description
   
   Hi I have plan to set keycloak behide gateway and I have to set header in order to make keycloak work fine.
   How to config following header in apisix gateway via `apisix_dashboard` ? 
   
   ```conf
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-Host $host;
       proxy_set_header X-Forwarded-Port $server_port;
   ``` 
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.15
   - Operating system (run `uname -a`): Docker env
   - APISIX Dashboard version, if relevant: 2.15
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] mscb402 commented on issue #8508: help request: How to set header in apisix ?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1347780757

   If this answer work for you, you can close this issue. :)


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] wavemoroc001 commented on issue #8508: help request: How to set header in apisix ?

Posted by GitBox <gi...@apache.org>.
wavemoroc001 commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1347777031

   @mscb402 It can call variable like in nginx ? eg. `$remote_addr`


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] wavemoroc001 closed issue #8508: help request: How to set header in apisix ?

Posted by GitBox <gi...@apache.org>.
wavemoroc001 closed issue #8508: help request: How to set header in apisix ? 
URL: https://github.com/apache/apisix/issues/8508


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] karl-chanel commented on issue #8508: help request: How to set header in apisix ?

Posted by "karl-chanel (via GitHub)" <gi...@apache.org>.
karl-chanel commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1504548565

   > why cant i see the proxy-rewrite plugin in the route config dashboard,while i can see the plugin in the global plugin config dashboard@mscb402 
   
   i can do that via the admin api using curl,but i cant do that in the dashboard


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] mscb402 commented on issue #8508: help request: How to set header in apisix ?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1347772441

   You can use proxy-rewrite plugin to change header https://apisix.apache.org/docs/apisix/plugins/proxy-rewrite/


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] mscb402 commented on issue #8508: help request: How to set header in apisix ?

Posted by GitBox <gi...@apache.org>.
mscb402 commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1347778728

   Yes. The values in the header can contain Nginx variables like $remote_addr and $client_addr.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] karl-chanel commented on issue #8508: help request: How to set header in apisix ?

Posted by "karl-chanel (via GitHub)" <gi...@apache.org>.
karl-chanel commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1504499716

   >  I can't get what you said.and why cant i see the proxy-rewrite plugin in the route config dashboard,while i can see the plugin in the global plugin config dashboard@mscb402 
   
   Environment
   
   APISIX version :3.2
   APISIX Dashboard version: 3.0
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] karl-chanel commented on issue #8508: help request: How to set header in apisix ?

Posted by "karl-chanel (via GitHub)" <gi...@apache.org>.
karl-chanel commented on issue #8508:
URL: https://github.com/apache/apisix/issues/8508#issuecomment-1504496075

    I can't get what you said.and why cant i see the proxy-rewrite plugin in the route config dashboard,while i can see the plugin in the global plugin config dashboard@mscb402 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org