void0028 commited on
Commit
fb379e7
·
verified ·
1 Parent(s): 0348262

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -25,7 +25,7 @@ ENV CASTING_DISABLED=1
25
  ENV STREAMING_DISABLED=0
26
  ENV PORT=11470
27
 
28
- # 6. Create the Proxy Script (The Interface)
29
  RUN echo "const http = require('http'); \
30
  const httpProxy = require('http-proxy'); \
31
  const proxy = httpProxy.createProxyServer({}); \
@@ -40,7 +40,7 @@ proxy.on('error', function (err, req, res) { \
40
  const server = http.createServer((req, res) => { \
41
  if (req.url === '/' || req.url === '/health') { \
42
  res.writeHead(200, { 'Content-Type': 'text/html' }); \
43
- res.end('<body style=\"background:black;color:#00ff00;font-family:monospace;display:flex;align-items:center;justify-content:center;height:100vh;\"><h1>✅ STREMIO IS LIVE<br><span style=\"color:white;font-size:12px\">Profile: Ultra Fast (Forced) | Connections: 500</span></h1></body>'); \
44
  } else { \
45
  proxy.web(req, res, { target: STREMIO_TARGET }); \
46
  } \
@@ -50,15 +50,14 @@ server.listen(7860, '0.0.0.0', () => { \
50
  console.log('✅ PROXY STARTED'); \
51
  });" > /stremio/proxy.js
52
 
53
- # 7. Startup Script (The Fix)
54
- # We now inject 'btMaxConnections' and 'connections' explicitly.
55
- # This forces the engine to use 500 connections instead of the default 55.
56
  RUN echo "#!/bin/bash \n\
57
- echo '{\"cacheSize\": 2147483648, \"btProfile\": \"ultra_fast\", \"btMaxConnections\": 500, \"connections\": 500}' > /root/.stremio-server/server-settings.json \n\
58
  node /stremio/proxy.js & \n\
59
  PID_PROXY=\$! \n\
60
  sleep 2 \n\
61
- echo '🚀 STARTING STREMIO ENGINE (Connections: 500)...' \n\
62
  node /stremio/server.js & \n\
63
  PID_SERVER=\$! \n\
64
  wait \$PID_SERVER" > /stremio/start.sh && chmod +x /stremio/start.sh
 
25
  ENV STREAMING_DISABLED=0
26
  ENV PORT=11470
27
 
28
+ # 6. Create the Proxy Script
29
  RUN echo "const http = require('http'); \
30
  const httpProxy = require('http-proxy'); \
31
  const proxy = httpProxy.createProxyServer({}); \
 
40
  const server = http.createServer((req, res) => { \
41
  if (req.url === '/' || req.url === '/health') { \
42
  res.writeHead(200, { 'Content-Type': 'text/html' }); \
43
+ res.end('<body style=\"background:black;color:#00ff00;font-family:monospace;display:flex;align-items:center;justify-content:center;height:100vh;\"><h1>✅ STREMIO IS LIVE<br><span style=\"color:white;font-size:12px\">Profile: Ultra Fast | Connections: 818</span></h1></body>'); \
44
  } else { \
45
  proxy.web(req, res, { target: STREMIO_TARGET }); \
46
  } \
 
50
  console.log('✅ PROXY STARTED'); \
51
  });" > /stremio/proxy.js
52
 
53
+ # 7. Startup Script (The 818 Special)
54
+ # Injecting exactly 818 connections into the settings.
 
55
  RUN echo "#!/bin/bash \n\
56
+ echo '{\"cacheSize\": 2147483648, \"btProfile\": \"ultra_fast\", \"btMaxConnections\": 818, \"connections\": 818}' > /root/.stremio-server/server-settings.json \n\
57
  node /stremio/proxy.js & \n\
58
  PID_PROXY=\$! \n\
59
  sleep 2 \n\
60
+ echo '🚀 STARTING STREMIO ENGINE (Connections: 818)...' \n\
61
  node /stremio/server.js & \n\
62
  PID_SERVER=\$! \n\
63
  wait \$PID_SERVER" > /stremio/start.sh && chmod +x /stremio/start.sh