bytedance / g3

Enterprise-oriented Generic Proxy Solutions
Apache License 2.0
473 stars 35 forks source link

How to auditor based on domain? #311

Closed mspublic closed 2 months ago

mspublic commented 2 months ago

I am trying to determine the best way to choose an escaper based on domain. For instance if a connection is going to google.com I would like them to goto one auditor but if its yahoo.com goto a different auditor.

Thanks!

mspublic commented 2 months ago

I figured out how to choose escapers (using the route_upstream). But not auditors.

zh-jq-b commented 2 months ago

I will add an optional auditor config option in escaper config, and it will overwrite the server side auditor config if present.

mspublic commented 2 months ago

One of the uses for this is so we can configure what sites are sent to icap/etc.

mspublic commented 2 months ago

Thanks!