Add variables to enable experimental features: pandoc conversion and editor tabs

This commit is contained in:
yu-i-i
2026-07-17 18:07:22 +02:00
parent aaea099e48
commit febe214af6
4 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ server {
root /var/lib/overleaf/data/output/$1-$2/generated-files/$3/; root /var/lib/overleaf/data/output/$1-$2/generated-files/$3/;
} }
# handle output files for anonymous users # handle output files for anonymous users
location ~ ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)$ { location ~ ^/project/([0-9a-f-]+)/build/([0-9a-f-]+)/output/(.+)$ {
rewrite ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)$ /$3 break; rewrite ^/project/([0-9a-f-]+)/build/([0-9a-f-]+)/output/(.+)$ /$3 break;
root /var/lib/overleaf/data/output/$1/generated-files/$2/; root /var/lib/overleaf/data/output/$1/generated-files/$2/;
} }
+1
View File
@@ -200,6 +200,7 @@ const DockerRunner = {
err.code = exitCode err.code = exitCode
return callback(err) return callback(err)
} }
output.exitCode = exitCode
containerReturned = true containerReturned = true
logger.debug( logger.debug(
// The seccomp policy is very large. Avoid logging it. _.omit deep clones. // The seccomp policy is very large. Avoid logging it. _.omit deep clones.
+14 -4
View File
@@ -861,19 +861,29 @@
"args": [] "args": []
}, },
{ {
"name": "openat2", "name": "epoll_create",
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",
"args": [] "args": []
}, },
{ {
"name": "statx", "name": "epoll_ctl",
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",
"args": [] "args": []
}, },
{ {
"name": "clone3", "name": "timerfd_create",
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",
"args": [] "args": []
},
{
"name": "timerfd_settime",
"action": "SCMP_ACT_ALLOW",
"args": []
},
{
"name": "eventfd2",
"action": "SCMP_ACT_ALLOW",
"args": []
} }
] ]
} }
+10
View File
@@ -1263,6 +1263,16 @@ module.exports = {
}, },
splitTestOverrides: { splitTestOverrides: {
...(process.env.ENABLE_EDITOR_TABS?.toLowerCase() === 'true' ? {
'editor-tabs': 'enabled',
} : {}),
...(process.env.ENABLE_PANDOC_CONVERSIONS === 'true' ? {
'import-docx': 'enabled',
'import-markdown': 'enabled',
'export-docx': 'enabled',
'export-html': 'enabled',
'export-markdown': 'enabled',
} : {}),
...(process.env.OVERLEAF_HISTORY_RESTORE?.toLowerCase() === 'true' ? { ...(process.env.OVERLEAF_HISTORY_RESTORE?.toLowerCase() === 'true' ? {
'history-ranges-support': 'enabled', 'history-ranges-support': 'enabled',
'revert-file': 'enabled', 'revert-file': 'enabled',