1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

update to latest version

This commit is contained in:
Thomas 2024-04-24 20:11:54 +02:00 committed by GitHub
parent 87ef7060ee
commit 4c9b56c94e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 58 additions and 39 deletions

View file

@ -1,10 +1,15 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
# block external access to prometheus /metrics
location /metrics/ {
internal;
}
location __PATH__/ {
# Set max upload size
client_max_body_size 50m;
proxy_pass http://localhost:__PORT__; # The port must match the value of SHARELATEX_PORT.
proxy_pass http://127.0.0.1:__PORT__; # The port must match the value of SHARELATEX_PORT.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@ -12,6 +17,7 @@ location __PATH__/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 10m;
proxy_send_timeout 10m;
# Include SSOWAT user panel.
@ -19,7 +25,7 @@ location __PATH__/ {
}
location __PATH__/socket.io/ {
proxy_pass http://localhost:3026;
proxy_pass http://127.0.0.1:3026;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@ -36,16 +42,15 @@ location __PATH__/stylesheets/ {
# Set max upload size
client_max_body_size 50m;
alias __INSTALL_DIR__/live/services/web/public/stylesheets/;
expires 1y;
}
location __PATH__/minjs/ {
alias __INSTALL_DIR__/live/services/web/public/minjs/;
expires 1y;
}
location __PATH__/img/ {
alias __INSTALL_DIR__/live/services/web/public/img/;
expires 1y;
}

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/chat/app.js
StandardOutput=append:/var/log/__APP__/chat.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/clsi/app.js
StandardOutput=append:/var/log/__APP__/clsi.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/contacts/app.js
StandardOutput=append:/var/log/__APP__/contacts.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/docstore/app.js
StandardOutput=append:/var/log/__APP__/docstore.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/document-updater/app.js
StandardOutput=append:/var/log/__APP__/document-updater.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/filestore/app.js
StandardOutput=append:/var/log/__APP__/filestore.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__"
Environment="NODE_CONFIG_DIR=__INSTALL_DIR__/live/services/history-v1/config"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/history-v1/app.js

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/notifications/app.js
StandardOutput=append:/var/log/__APP__/notifications.log
StandardError=inherit

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/variables.env
Environment="LISTEN_ADDRESS=127.0.0.1"
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/project-history/app.js
StandardOutput=append:/var/log/__APP__/project-history.log
StandardError=inherit

View file

@ -7,6 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="LISTEN_ADDRESS=127.0.0.1"
EnvironmentFile=__INSTALL_DIR__/variables.env
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/real-time/app.js
StandardOutput=append:/var/log/__APP__/real-time.log

View file

@ -7,6 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="LISTEN_ADDRESS=127.0.0.1"
EnvironmentFile=__INSTALL_DIR__/variables.env
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/spelling/app.js
StandardOutput=append:/var/log/__APP__/spelling.log

View file

@ -7,6 +7,9 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="LISTEN_ADDRESS=127.0.0.1"
Environment="ENABLED_SERVICES="web""
Environment="WEB_PORT="__PORT__""
EnvironmentFile=__INSTALL_DIR__/variables.env
ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/web/app.js
StandardOutput=append:/var/log/__APP__/web.log

View file

@ -258,16 +258,16 @@ const settings = {
apis: {
web: {
url: 'http://localhost:__PORT__',
url: 'http://127.0.0.1:__PORT__',
user: httpAuthUser,
pass: httpAuthPass,
},
project_history: {
sendProjectStructureOps: true,
url: 'http://localhost:3054',
url: 'http://127.0.0.1:3054',
},
v1_history: {
url: process.env.V1_HISTORY_URL || 'http://localhost:3100/api',
url: process.env.V1_HISTORY_URL || 'http://127.0.0.1:3100/api',
user: 'staging',
pass: process.env.STAGING_PASSWORD,
requestTimeout: parseInt(
@ -411,7 +411,7 @@ if (
if (parse(process.env.OVERLEAF_IS_SERVER_PRO) === true) {
settings.bypassPercentageRollouts = true
settings.apis.references = { url: 'http://localhost:3040' }
settings.apis.references = { url: 'http://127.0.0.1:3040' }
}
// Compiler

View file

@ -51,8 +51,8 @@ ram.runtime = "3G"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://github.com/overleaf/overleaf/archive/af037ddb439505e1171f51d1a3e676a67fe98c9d.tar.gz"
sha256 = "403e9572b32addb4252de171191200510af70cdb868e90838091183e3ebec9a7"
url = "https://github.com/overleaf/overleaf/archive/2469c93da470c16649c17d39dae5bbc81185ebaa.tar.gz"
sha256 = "c0420f8815998945cae21b6e8b1c2bf9e9b0f5db171e41ee5225ae67fc75ca8e"
autoupdate.strategy = "latest_github_commit"
[resources.system_user]

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
nodejs_version=18.20.1
nodejs_version=18.20.2
#=================================================
# PERSONAL HELPERS