Преглед на файлове

updated sslwp support streaming

lc преди 2 седмици
родител
ревизия
d7e031a183
променени са 4 файла, в които са добавени 33 реда и са изтрити 6 реда
  1. 1 1
      calibre/docker-compose.yml
  2. 4 2
      scripts/restore_volumes.sh
  3. 0 1
      sslwp/data/conf/nginx.conf
  4. 28 2
      sslwp/docker-compose.yml

+ 1 - 1
calibre/docker-compose.yml

@@ -1,7 +1,7 @@
 ---
 services:
   calibre-web:
-    image: lscr.io/linuxserver/calibre-web:latest
+    image: hubreg.algometic.com/calibre-web-fork:0.6.28b
     container_name: ${CALIBRE_WEB_NAME}
     environment:
       - PUID=1000

+ 4 - 2
scripts/restore_volumes.sh

@@ -47,9 +47,11 @@ TIMESTAMP="20260208_172424"  # Replace with your desired timestamp
 
 # List of volumes to restore
 #NEW_VOLUMES=(${NEW_VOLUME}_files "${NEW_VOLUME}_oo_data"  "${NEW_VOLUME}_es_index" "${NEW_VOLUME}_db" "${NEW_VOLUME}_clamav")  # Replace with your new volume names
-VOLUMES=("wg-easy_etc_wireguard" "jellyfin-b_config" "jellyfin_cache" "jellyfin_config" "nextcloud_duplicati_config" "duplicati_config")  # Replace with your volume names
-NEW_VOLUMES=("wg-easy_etc_wireguard" "jellyfin-b_config" "jellyfin_cache" "jellyfin_config" "nextcloud_duplicati_config" "duplicati_config")  # Replace with your volume names
+#VOLUMES=("wg-easy_etc_wireguard" "jellyfin-b_config" "jellyfin_cache" "jellyfin_config" "nextcloud_duplicati_config" "duplicati_config")  # Replace with your volume names
+#NEW_VOLUMES=("wg-easy_etc_wireguard" "jellyfin-b_config" "jellyfin_cache" "jellyfin_config" "nextcloud_duplicati_config" "duplicati_config")  # Replace with your volume names
 
+VOLUMES=("nextcloud_duplicati_config")  # Replace with your volume names
+NEW_VOLUMES=("nextcloud_duplicati_config")  # Replace with your volume names
 
 # Ensure backup directory exists
 mkdir -p "$BACKUP_DIR"

+ 0 - 1
sslwp/data/conf/nginx.conf

@@ -42,4 +42,3 @@ server {
 
 }
 
-

+ 28 - 2
sslwp/docker-compose.yml

@@ -81,6 +81,33 @@ services:
 #                secouch.algometic.com->http://192.168.1.124:5123 #production,
 #                nc2022code.algometic.com->http://192.168.1.124:9982 #production,
 #                nc2022.algometic.com->http://192.168.1.124:1236 #production,
+#                bellabee.ai->http://192.168.1.119:4321 #production,
+#                chat.algometic.com->http://192.168.1.38:3000 #production,
+
+      # 1. Enable WebSocket/SSE upgrade headers globally
+      WEBSOCKET: 'true'
+      
+      # 2. Inject custom Nginx directives specifically for chat.algometic.com
+      # (Note: If your domain is actually plural 'chats.algometic.com', change this to CUSTOM_NGINX_CHATS_ALGOMETIC_COM_CONFIG_BLOCK)
+      CUSTOM_NGINX_CHAT_ALGOMETIC_COM_CONFIG_BLOCK: |
+        # Disable buffering for SSE streaming
+        proxy_buffering off;
+        proxy_request_buffering off;
+        proxy_cache off;
+        chunked_transfer_encoding on;
+        tcp_nodelay on;
+        
+        # Instruct intermediate proxies not to buffer
+        add_header X-Accel-Buffering "no" always;
+        add_header Cache-Control "no-store" always;
+        
+        # Increase timeouts (LLM generations can take a long time, default 60s is too short)
+        proxy_connect_timeout 1800;
+        proxy_send_timeout 1800;
+        proxy_read_timeout 1800;
+        
+        # Allow larger file uploads if you attach documents to the chat
+        client_max_body_size 20M;
 
       DOMAINS: '
                 algometic.com->http://192.168.1.119:8280 #production,
@@ -98,8 +125,7 @@ services:
                 wake.algometic.com->http://192.168.1.119:8081 #production,
                 1984.algometic.com->http://192.168.1.119:1234 #production,
                 1985.algometic.com->http://192.168.1.119:9980 #production,
-                chat.algometic.com->http://192.168.1.118:3000 #production,
-                bellabee.ai->http://192.168.1.119:4321 #production,
+                chat.algometic.com->http://192.168.1.38:3000 #production,
                 '