Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: update nginx and docker-compose files to support HTTPS. (#2940)

Kenny08a5afcf9fd2
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index d5e90f8347e..42a3e7055bb 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -326,8 +326,10 @@ services:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/conf.d:/etc/nginx/conf.d
+ #- ./nginx/ssl:/etc/ssl
depends_on:
- api
- web
ports:
- "80:80"
+ #- "443:443"
diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf
index 879ce631641..d6ee302b789 100644
--- a/docker/nginx/conf.d/default.conf
+++ b/docker/nginx/conf.d/default.conf
@@ -26,4 +26,13 @@ server {
proxy_pass http://web:3000;
include proxy.conf;
}
-}
\ No newline at end of file
+
+ # If you want to support HTTPS, please uncomment the code snippet below
+ #listen 443 ssl;
+ #ssl_certificate ./../ssl/your_cert_file.cer;
+ #ssl_certificate_key ./../ssl/your_cert_key.key;
+ #ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
+ #ssl_prefer_server_ciphers on;
+ #ssl_session_cache shared:SSL:10m;
+ #ssl_session_timeout 10m;
+}
diff --git a/docker/nginx/ssl/.gitkeep b/docker/nginx/ssl/.gitkeep
new file mode 100644
index 00000000000..8b137891791
--- /dev/null
+++ b/docker/nginx/ssl/.gitkeep
@@ -0,0 +1 @@
+