pr_17601-4.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --- chat-overleaf/run
  2. +++ chat-overleaf/run
  3. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  4. NODE_PARAMS="--inspect=0.0.0.0:30100"
  5. fi
  6. +source /etc/overleaf/env.sh
  7. +export LISTEN_ADDRESS=127.0.0.1
  8. +
  9. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/chat/app.js >> /var/log/overleaf/chat.log 2>&1
  10. --- clsi-overleaf/run
  11. +++ clsi-overleaf/run
  12. @@ -15,4 +15,7 @@ if [ -e '/var/run/docker.sock' ]; then
  13. usermod -aG dockeronhost www-data
  14. fi
  15. +source /etc/overleaf/env.sh
  16. +export LISTEN_ADDRESS=127.0.0.1
  17. +
  18. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/clsi/app.js >> /var/log/overleaf/clsi.log 2>&1
  19. --- contacts-overleaf/run
  20. +++ contacts-overleaf/run
  21. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  22. NODE_PARAMS="--inspect=0.0.0.0:30360"
  23. fi
  24. +source /etc/overleaf/env.sh
  25. +export LISTEN_ADDRESS=127.0.0.1
  26. +
  27. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/contacts/app.js >> /var/log/overleaf/contacts.log 2>&1
  28. --- docstore-overleaf/run
  29. +++ docstore-overleaf/run
  30. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  31. NODE_PARAMS="--inspect=0.0.0.0:30160"
  32. fi
  33. +source /etc/overleaf/env.sh
  34. +export LISTEN_ADDRESS=127.0.0.1
  35. +
  36. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/docstore/app.js >> /var/log/overleaf/docstore.log 2>&1
  37. --- document-updater-overleaf/run
  38. +++ document-updater-overleaf/run
  39. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  40. NODE_PARAMS="--inspect=0.0.0.0:30030"
  41. fi
  42. +source /etc/overleaf/env.sh
  43. +export LISTEN_ADDRESS=127.0.0.1
  44. +
  45. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/document-updater/app.js >> /var/log/overleaf/document-updater.log 2>&1
  46. --- filestore-overleaf/run
  47. +++ filestore-overleaf/run
  48. @@ -1,2 +1,6 @@
  49. #!/bin/bash
  50. +
  51. +source /etc/overleaf/env.sh
  52. +export LISTEN_ADDRESS=127.0.0.1
  53. +
  54. exec /sbin/setuser www-data /usr/bin/node /overleaf/services/filestore/app.js >> /var/log/overleaf/filestore.log 2>&1
  55. --- notifications-overleaf/run
  56. +++ notifications-overleaf/run
  57. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  58. NODE_PARAMS="--inspect=0.0.0.0:30420"
  59. fi
  60. +source /etc/overleaf/env.sh
  61. +export LISTEN_ADDRESS=127.0.0.1
  62. +
  63. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/notifications/app.js >> /var/log/overleaf/notifications.log 2>&1
  64. --- project-history-overleaf/run
  65. +++ project-history-overleaf/run
  66. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  67. NODE_PARAMS="--inspect=0.0.0.0:30540"
  68. fi
  69. +source /etc/overleaf/env.sh
  70. +export LISTEN_ADDRESS=127.0.0.1
  71. +
  72. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/project-history/app.js >> /var/log/overleaf/project-history.log 2>&1
  73. --- real-time-overleaf/run
  74. +++ real-time-overleaf/run
  75. @@ -1,2 +1,6 @@
  76. #!/bin/bash
  77. +
  78. +source /etc/overleaf/env.sh
  79. +export LISTEN_ADDRESS=127.0.0.1
  80. +
  81. exec /sbin/setuser www-data /usr/bin/node /overleaf/services/real-time/app.js >> /var/log/overleaf/real-time.log 2>&1
  82. --- spelling-overleaf/run
  83. +++ spelling-overleaf/run
  84. @@ -6,4 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  85. NODE_PARAMS="--inspect=0.0.0.0:30050"
  86. fi
  87. +source /etc/overleaf/env.sh
  88. +export LISTEN_ADDRESS=127.0.0.1
  89. +
  90. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/spelling/app.js >> /var/log/overleaf/spelling.log 2>&1
  91. --- web-api-overleaf/run
  92. +++ web-api-overleaf/run
  93. @@ -6,6 +6,7 @@ if [ "$DEBUG_NODE" == "true" ]; then
  94. NODE_PARAMS="--inspect=0.0.0.0:30000"
  95. fi
  96. +source /etc/overleaf/env.sh
  97. export LISTEN_ADDRESS=0.0.0.0
  98. export ENABLED_SERVICES="api"
  99. export METRICS_APP_NAME="web-api"
  100. --- web-overleaf/run
  101. +++ web-overleaf/run
  102. @@ -6,6 +6,8 @@ if [ "$DEBUG_NODE" == "true" ]; then
  103. NODE_PARAMS="--inspect=0.0.0.0:40000"
  104. fi
  105. +source /etc/overleaf/env.sh
  106. +export LISTEN_ADDRESS=127.0.0.1
  107. export ENABLED_SERVICES="web"
  108. export WEB_PORT="4000"