Skip to content

What does exactly ssrf-proxy do in the default docker-compose.yaml file? #4988

Answered by sbkkalex
sbkkalex asked this question in Help
Discussion options

You must be logged in to vote

After some digging, I find out what exact ssrf-proxy is used in dify.

It is used mainly in the following situations:

  • When using a API-Based Extension (I think this function is now deprecated)
  • When a network request start from sandbox (Use requests.get in Python code, for example)
  • pip install on the sandbox start if additional library is configured
  • Check the installed additional library list of sandbox

So, if you don't use API-Based extension and don't add additional http request library in sandbox, it is safe to delete the ssrf-proxy.

Also, despite a reverse server to sandbox is configured in squid, the default setting does not use the reverse server but connect directly to sandbox.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@patryk20120
Comment options

@sbkkalex
Comment options

@yuichiromukaiyama
Comment options

@ajaman190
Comment options

@sbkkalex
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sbkkalex
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants