mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #14857 from overleaf/jpa-server-pro-web-api
[server-ce] add web-api service GitOrigin-RevId: c0f33573e85c0fb4031df39c500cc2a110e07687
This commit is contained in:
@@ -10,7 +10,7 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:4000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
13
server-ce/runit/web-api-sharelatex/run
Executable file
13
server-ce/runit/web-api-sharelatex/run
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
NODE_PARAMS=""
|
||||
if [ "$DEBUG_NODE" == "true" ]; then
|
||||
echo "running debug - web-api"
|
||||
NODE_PARAMS="--inspect=0.0.0.0:30000"
|
||||
fi
|
||||
|
||||
export LISTEN_ADDRESS=0.0.0.0
|
||||
export ENABLED_SERVICES="api"
|
||||
export METRICS_APP_NAME="web-api"
|
||||
|
||||
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/web/app.js >> /var/log/sharelatex/web-api.log 2>&1
|
||||
@@ -3,7 +3,10 @@
|
||||
NODE_PARAMS=""
|
||||
if [ "$DEBUG_NODE" == "true" ]; then
|
||||
echo "running debug - web"
|
||||
NODE_PARAMS="--inspect=0.0.0.0:30000"
|
||||
NODE_PARAMS="--inspect=0.0.0.0:40000"
|
||||
fi
|
||||
|
||||
export ENABLED_SERVICES="web"
|
||||
export WEB_PORT="4000"
|
||||
|
||||
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/web/app.js >> /var/log/sharelatex/web.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user