2026 Dify 1.20 Self-Hosting: Which Data Goes External?

A self-hosted Dify workflow is running, but you cannot tell whether a user’s question or retrieved document leaves your environment.

Fastest safe decision: Treat every external model, embedding or reranking service, plugin, tool, and data source as a possible outbound path. Map and verify each workflow before launch; if data must stay within your boundary, use validated local components and restrict external integrations.

This guide is for technical leads preparing an enterprise knowledge base, administrators managing Dify workspaces and model providers, and development teams distinguishing a self-hosted application from self-hosted inference.

Last updated November 29, 2026. Version and configuration references checked against Dify’s 1.20.0 release record and official self-hosting and integration documentation. Actual data movement still depends on your deployed version, workflow, and receiving services.

Map the Dify 1.20 self-hosted data flow

“Self-hosted” tells you where the Dify application runs. It does not, by itself, tell you where every part of a request is processed. A workflow may call an external model provider, a tool, an external data source, or another configured service. Each connection needs its own review.

Use this simple map as a starting point, not as proof of what your deployment sends:

User browser
    |
    v
Dify application and workflow
    |             |                |
    v             v                v
Knowledge base   Model provider   Tools / integrations
    |                                |
    v                                v
Configured storage                 External service

A query may be handled by several components. The application can receive the user’s question, retrieve relevant knowledge, pass selected content to a model, and invoke a tool. Which of those steps occur, and where, depends on your configuration.

The first task is to document your actual routes. For each workflow, record the starting input, the components it reaches, and the destination of every network call. Do not assume that two apps in the same Dify workspace use identical providers or integrations.

Dify’s workspace integration documentation describes integration categories. Use it to build an inventory, then compare that inventory with the connections enabled in your own workspace. Documentation can tell you what to inspect; your configured workflow and runtime evidence determine what it actually does.

Separate model requests from platform hosting

After self-hosting Dify, can user prompts still go to an external model? Yes, if the workflow calls a model provider hosted outside your controlled environment. Self-hosting the application does not make that provider local.

Dify’s model-provider configuration guide explains how providers are configured. For each model node, record the provider, endpoint type, and data passed to it. Review the workflow rather than relying on the fact that a model connection is available or that a test call succeeded.

Track these as separate data objects:

The presence of one object does not prove that every other object is sent. Inspect each node’s inputs and outputs, and confirm the receiving endpoint. Also check whether a later tool call receives the model response or retrieved passages.

Can Dify’s embedding and reranking models run locally? They can be used locally only when your deployment is configured to reach suitable local services and the workflow uses those services. Verify the endpoint, request path, and runtime behavior for your version. Do not treat a local chat model as evidence that embedding or reranking is local too; those are separate model functions and may use different providers.

If a strict data boundary is required, test the workflow with representative, non-sensitive content first. Confirm which components receive the text, then repeat the test with production-equivalent configuration before approving the workflow. A successful local connection test proves connectivity, not that all model-related paths remain local.

Boundary check: A provider name or “private deployment” label is not evidence of where a request is processed. Record the destination and the data sent for each model call.

Verify file storage and model access separately

A document can pass through more than one system. Storage location, knowledge-base processing, and a model’s access to a file are distinct checks. Verifying only where uploads are stored leaves other paths unresolved.

Dify’s self-hosted environment variable documentation provides configuration details to review for a deployment. Use the documentation that matches your deployed version to identify the configured file-storage backend. Then confirm that files are actually written to the intended location. A setting in a configuration file is a useful lead, not runtime proof.

For every document workflow, trace these stages:

  1. Upload: Identify which application endpoint receives the file and which storage backend handles it.
  2. Processing: Determine which service extracts or transforms the content and whether any external component is involved.
  3. Indexing: Record the embedding provider and destination used for vectors or other derived data.
  4. Retrieval: Identify the knowledge store queried and the passages selected for a response.
  5. Model access: Check whether the model receives text, a file reference, or a URL.

Pay particular attention to multimodal workflows. A file reference or URL may have different access behavior from extracted text. If a URL is passed to a model or another service, verify whether the recipient can reach it, who can access it, and whether it is protected for the full period it remains usable. Do not infer a recipient’s retention, training, or deletion practices from the URL mechanism.

The same distinction applies to a self-hosted knowledge base. Local file storage does not prove that extracted content, embeddings, or retrieved passages stay local. Review the complete path from upload through retrieval and generation.

Inspect plugins, tools, and external data sources

Will documents in a self-hosted Dify knowledge base reach a third party? That depends on the configured processing and retrieval path. A document may be stored locally while selected text is sent to an external model or a connected service. Check each stage instead of treating “the knowledge base” as one component.

Dify documents external knowledge API configuration. If a workflow uses an external knowledge endpoint, record its recipient and the query or fields sent to it. Do not assume that an external knowledge source is covered by the same boundary as the Dify application.

Review every workflow node that makes a request beyond the services you control. Include plugins, tools, data sources, triggers, and any configured MCP service. For each connection, capture:

How do you check whether a plugin or tool sends data outside your server? Start with its configuration and the workflow fields passed into it. Then compare the configured destination with runtime evidence from your deployment and network controls. A plugin’s label or description is not enough to establish what its specific workflow sends.

You can inventory the services declared by Docker Compose without printing environment values:

docker compose config --services
docker compose config --images

These commands help you identify declared services and images. They do not reveal every runtime destination, prove that a service is local, or audit outbound traffic. Keep secrets out of terminal captures and tickets. For each service that can make external requests, review its configuration and the destinations it contacts using your own approved monitoring and network controls.

If you use an external data source or model, record the decision explicitly. Either accept the path under your organization’s policy, replace it with a validated local component, or disable the connection until it can be assessed.

A workflow’s main request is not the only place to inspect. Errors, tracing records, callbacks, and file preview links may create additional exposure points. Whether they contain sensitive content depends on your version, configuration, workflow, and the systems receiving them.

Dify’s self-hosted configuration documentation and logs documentation are starting points for identifying relevant settings and log behavior. Treat configuration names as inspection clues. Do not infer that a particular sensitive field is transmitted merely because a logging option exists.

For each workflow, check:

Use a test workflow with synthetic content to observe what your deployment records and sends. Then check the same paths in the production-equivalent configuration. Keep the evidence: a dated configuration review, a workflow export or review record, and observations from your own runtime checks. Do not claim that a configuration is private merely because no obvious error appears in the interface.

Make a workflow-level boundary decision

Use the first table to compare the decision you are making. The important distinction is not “cloud versus server” in the abstract. It is whether every necessary recipient and processing step is inside the boundary your organization has approved.

Option What to verify Suitable decision
External model or service Recipient, request fields, access credentials, and applicable policy Use only when the data transfer is reviewed and accepted
Local model or processing service Endpoint location, workflow routing, and observed runtime behavior Consider when the data must remain within a controlled environment
External knowledge source or tool Query fields, returned content, and the system receiving the request Keep enabled only when the integration’s boundary is understood
Unverified connection Destination, data fields, and runtime evidence are unknown Disable, replace, or hold for review before launch

Then complete a record for every production workflow. Assign an owner; otherwise, an unresolved connection can remain enabled without anyone being responsible for it.

Data or action Initiating component Recipient Sensitive fields possible? Local replacement available? Verification evidence and owner
User prompt Workflow model node Named provider or local endpoint Yes / No / Unknown Record the tested option Configuration review and runtime check
Retrieved passage Retrieval-to-model path Named model endpoint Yes / No / Unknown Record the tested option Workflow review and runtime check
Document upload or processing Upload and processing components Storage or processing destination Yes / No / Unknown Record the tested option Storage and processing review
Tool, plugin, or data-source request Named workflow node Named service Yes / No / Unknown Record the tested option Request-field review and runtime check
Logs, callbacks, or file links Logging or callback component Collector, recipient, or link audience Yes / No / Unknown Record the tested option Access and destination review

Use this rule for the final decision:

For the operational review, use a sequence your team can repeat:

  1. List the workflows that will handle sensitive or internal content.
  2. Export or inspect each workflow and mark every model, retrieval, tool, plugin, data-source, and callback node.
  3. Record each node’s input fields, destination, credentials, and output path.
  4. Check file storage, processing, logs, and links using the documentation for your deployed version.
  5. Run a non-sensitive test and compare observed network destinations and records with your map.
  6. Assign an owner to every external path and record whether it is approved, replaced, disabled, or still pending.
  7. Repeat the review after changing a provider, workflow, integration, or relevant deployment configuration.

If your review also involves moving a knowledge-base database from a managed environment, AmdSrv’s guide to cloud repatriation and database backup covers that adjacent migration decision. It does not replace the workflow-level data-flow review described here.

Choose hosting only after defining the boundary

A dedicated server can give you control over the Dify application environment and the services you choose to run there. It cannot, on its own, control what an external model provider, plugin, or tool receives. Keep those two decisions separate.

If your current setup is a shared VPS or public-cloud instance, shared resources, instance-level limits, and service-specific configuration can complicate predictable operation and control of the host environment. Moving to an exclusive AMD physical server may make sense when you need dedicated machine resources and a host you administer directly. It is not the right fix for an unreviewed external data path.

AmdSrv offers dedicated AMD EPYC servers with the available memory and storage options listed on its server information page. Verify the current options there before choosing a host. A dedicated machine does not prove that external model calls, integrations, or file links keep data within your approved boundary.

If your workflow depends on external services, first decide which transfers your policy permits. If you need the application and selected components on infrastructure you control, compare that requirement with AmdSrv’s current server options. Make the purchase decision only after the data-flow record identifies what remains local, what leaves, and who has approved each path.

AmdSrv Dedicated Server with AMD EPYC 7543P, from $458/month

From deployment notes to configuration checks

Choose a server based on memory, storage, and network requirements. The customer manages the operating system and data backups.