Keycloak设置http代理proxy:修订间差异
来自三线的随记
小无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
== | === keycloak 开启log debug: === | ||
环境变量 KC_LOG_LEVEL debug | |||
===Official document=== | === 为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests) === | ||
==== Official document ==== | |||
https://www.keycloak.org/docs/latest/server_installation/#_proxymappings | https://www.keycloak.org/docs/latest/server_installation/#_proxymappings | ||
<br /> | <br /> | ||
===Related configuration file path=== | ==== Related configuration file path ==== | ||
<blockquote>There are some things you’ll need to configure in <code>standalone.xml</code>, <code>standalone-ha.xml</code>, or <code>domain.xml</code>. The location of this file depends on your operating mode.</blockquote>/opt/jboss/keycloak/standalone/configuration/**** | <blockquote>There are some things you’ll need to configure in <code>standalone.xml</code>, <code>standalone-ha.xml</code>, or <code>domain.xml</code>. The location of this file depends on your operating mode.</blockquote>/opt/jboss/keycloak/standalone/configuration/**** | ||
2025年4月28日 (一) 10:29的版本
keycloak 开启log debug:
环境变量 KC_LOG_LEVEL debug
为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests)
Official document
https://www.keycloak.org/docs/latest/server_installation/#_proxymappings
Related configuration file path
There are some things you’ll need to configure in
standalone.xml,standalone-ha.xml, ordomain.xml. The location of this file depends on your operating mode.
/opt/jboss/keycloak/standalone/configuration/****
eg: /opt/jboss/keycloak/standalone/configuration/standalone-ha.xml
<spi name="connectionsHttpClient">
<provider name="default" enabled="true">
<properties>
<property name="proxy-mappings" value="[".*\\.(microsoft|microsoftonline)\\.com;http://your-proxy-address.net:8080"]"/>
</properties>
</provider>
</spi>
ps
需要注意的是 " 是 " 的实体字符
Note that one needs to encode"characters with".