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,51 +1,56 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { # block external access to prometheus /metrics
location /metrics/ {
internal;
}
location __PATH__/ {
# Set max upload size # Set max upload size
client_max_body_size 50m; 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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_send_timeout 10m; proxy_read_timeout 10m;
proxy_send_timeout 10m;
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }
location __PATH__/socket.io/ { location __PATH__/socket.io/ {
proxy_pass http://localhost:3026; proxy_pass http://127.0.0.1:3026;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 10m; proxy_read_timeout 10m;
proxy_send_timeout 10m; proxy_send_timeout 10m;
} }
location __PATH__/stylesheets/ { location __PATH__/stylesheets/ {
# Set max upload size # Set max upload size
client_max_body_size 50m; client_max_body_size 50m;
alias __INSTALL_DIR__/live/services/web/public/stylesheets/; expires 1y;
expires 1y; }
}
location __PATH__/minjs/ { location __PATH__/minjs/ {
alias __INSTALL_DIR__/live/services/web/public/minjs/;
expires 1y; expires 1y;
} }
location __PATH__/img/ { location __PATH__/img/ {
alias __INSTALL_DIR__/live/services/web/public/img/;
expires 1y; expires 1y;
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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