Deploy Dify v1.10.1

Open-source AI platform with BaaS & LLMOps for all users.

Deploy Dify v1.10.1

/var/lib/weaviate

Just deployed

Just deployed

/dependencies

Just deployed

/app/storage

Just deployed

/var/lib/postgresql/data

Just deployed

/data

After deploying Dify for the first time, do not start the admin installation yet.

Before creating the root admin account, you must set up custom domains for both the Web service and the API service. You must also set the cookie domain so authentication works correctly across subdomains.

1. Add custom domains

Assign a custom domain to: • The Web service (e.g., app.example.com) • The API service (e.g., api.example.com)

Railway will automatically update the environment variables when you attach these custom domains.

2. Configure DNS

Add the DNS records provided by Railway.

Once DNS has propagated, click each custom domain link in the Railway dashboard to confirm they load correctly: • The Web custom domain should display the Dify UI. • The API custom domain should return a normal API response.

Continue only once both domains work.

3. Set the cookie domain (API service only)

To allow login, sessions, and CSRF protection to work across subdomains, manually set the cookie domain in the API service environment variables:

COOKIE_DOMAIN=.yourdomain.com

Example

COOKIE_DOMAIN=.example.com

This value is not injected automatically. You must set it manually. Without the correct cookie domain, session cookies and CSRF tokens will not work.

4. Redeploy both services

Redeploy both services: • API service • Web service

This ensures both services rebuild using the new custom domains and the correct cookie domain.

5. Proceed with admin setup

Once redeployments are complete, visit your Web custom domain (e.g., https://app.example.com). You will see the installation screen and can safely create the root admin account.

With the custom domains and cookie domain configured, authentication, cookies, and CSRF validation will work correctly.

Dify is an open-source platform for building AI applications. We combine Backend-as-a-Service and LLMOps to streamline the development of generative AI solutions, making it accessible to both developers and non-technical innovators.

Dify integrates:

  • Support for mainstream LLMs
  • An intuitive Prompt orchestration interface
  • High-quality RAG engines
  • A flexible AI Agent framework
  • An Intuitive Low-code Workflow
  • Easy-to-use interfaces and APIs

With Dify, you can skip the complexity and focus on what matters most - creating innovative AI applications that solve real-world problems.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

View Template
openui
Deploy OpenUI: AI-powered UI generation with GitHub OAuth and OpenAI API.

View Template
firecrawl
firecrawl api server + worker without auth, works with dify