Skip to content

Commit

Permalink
fix #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Aug 28, 2023
1 parent 9bef728 commit bdbf356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion otoroshi/app/netty/config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ object ReactorNettyServerConfig {
.filterNot(_.isEmpty),
clientAuth = {
val auth = env.configuration
.getOptionalWithFileSupport[String]("otoroshi.ssl.fromOutside.clientAuth")
.getOptionalWithFileSupport[String]("otoroshi.ssl.fromOutside.netty.clientAuth")
.orElse(
env.configuration
.getOptionalWithFileSupport[String]("otoroshi.ssl.fromOutside.clientAuth")
)
.flatMap(ClientAuth.apply)
.getOrElse(ClientAuth.None)
if (DynamicSSLEngineProvider.logger.isDebugEnabled)
Expand Down
1 change: 1 addition & 0 deletions otoroshi/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ reStart / javaOptions ++= Seq(
"-Dotoroshi.instance.name=dev",
"-Dotoroshi.vaults.enabled=true",
"-Dotoroshi.ssl.fromOutside.clientAuth=Want",
//"-Dotoroshi.ssl.fromOutside.clientAuth=Need",
"-Dotoroshi.inmemory.modern=true",
"-Dotoroshi.wasm.cache.ttl=2000",
"-Dotoroshi.next.experimental.netty-server.enabled=true",
Expand Down
3 changes: 3 additions & 0 deletions otoroshi/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,9 @@ otoroshi {
clientAuth = "None"
clientAuth = ${?SSL_OUTSIDE_CLIENT_AUTH}
clientAuth = ${?OTOROSHI_SSL_OUTSIDE_CLIENT_AUTH}
netty {
clientAuth = ${?OTOROSHI_SSL_OUTSIDE_NETTY_CLIENT_AUTH}
}
}
# the default trust mode
trust {
Expand Down

0 comments on commit bdbf356

Please sign in to comment.