mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
[web] Rebrand public access environment variables (#17013)
* [web] Rebrand SHARELATEX_ALLOW_PUBLIC_ACCESS and SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING * Add SHARELATEX_ALLOW_PUBLIC_ACCESS for backwards compatibility GitOrigin-RevId: ff99a83865c894b143039e058b63f4693d6c7cc5
This commit is contained in:
parent
19aaed64f8
commit
87cd480151
5 changed files with 6 additions and 6 deletions
|
@ -145,7 +145,7 @@ services:
|
||||||
- ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
|
- ENABLED_LINKED_FILE_TYPES=project_file,project_output_file
|
||||||
- EMAIL_CONFIRMATION_DISABLED=true
|
- EMAIL_CONFIRMATION_DISABLED=true
|
||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
- SHARELATEX_ALLOW_PUBLIC_ACCESS=true
|
- OVERLEAF_ALLOW_PUBLIC_ACCESS=true
|
||||||
command: ["node", "app.js"]
|
command: ["node", "app.js"]
|
||||||
volumes:
|
volumes:
|
||||||
- sharelatex-data:/var/lib/overleaf
|
- sharelatex-data:/var/lib/overleaf
|
||||||
|
|
|
@ -55,7 +55,7 @@ const settings = {
|
||||||
brandPrefix: '',
|
brandPrefix: '',
|
||||||
|
|
||||||
allowAnonymousReadAndWriteSharing:
|
allowAnonymousReadAndWriteSharing:
|
||||||
process.env.SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true',
|
process.env.OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true',
|
||||||
|
|
||||||
// Databases
|
// Databases
|
||||||
// ---------
|
// ---------
|
||||||
|
|
|
@ -114,7 +114,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
allowAnonymousReadAndWriteSharing:
|
allowAnonymousReadAndWriteSharing:
|
||||||
process.env.SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true',
|
process.env.OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true',
|
||||||
|
|
||||||
// Databases
|
// Databases
|
||||||
// ---------
|
// ---------
|
||||||
|
@ -586,7 +586,7 @@ module.exports = {
|
||||||
|
|
||||||
// Should we allow access to any page without logging in? This includes
|
// Should we allow access to any page without logging in? This includes
|
||||||
// public projects, /learn, /templates, about pages, etc.
|
// public projects, /learn, /templates, about pages, etc.
|
||||||
allowPublicAccess: process.env.SHARELATEX_ALLOW_PUBLIC_ACCESS === 'true',
|
allowPublicAccess: process.env.OVERLEAF_ALLOW_PUBLIC_ACCESS === 'true',
|
||||||
|
|
||||||
// editor should be open by default
|
// editor should be open by default
|
||||||
editorIsOpen: process.env.EDITOR_OPEN !== 'false',
|
editorIsOpen: process.env.EDITOR_OPEN !== 'false',
|
||||||
|
|
|
@ -5,7 +5,7 @@ REDIS_HOST=redis
|
||||||
QUEUES_REDIS_HOST=redis
|
QUEUES_REDIS_HOST=redis
|
||||||
ANALYTICS_QUEUES_REDIS_HOST=redis
|
ANALYTICS_QUEUES_REDIS_HOST=redis
|
||||||
MONGO_URL=mongodb://mongo/test-overleaf
|
MONGO_URL=mongodb://mongo/test-overleaf
|
||||||
SHARELATEX_ALLOW_PUBLIC_ACCESS=true
|
OVERLEAF_ALLOW_PUBLIC_ACCESS=true
|
||||||
LINKED_URL_PROXY=http://localhost:6543
|
LINKED_URL_PROXY=http://localhost:6543
|
||||||
ENABLED_LINKED_FILE_TYPES=url,project_file,project_output_file,mendeley,zotero
|
ENABLED_LINKED_FILE_TYPES=url,project_file,project_output_file,mendeley,zotero
|
||||||
NODE_ENV=test
|
NODE_ENV=test
|
||||||
|
|
|
@ -35,7 +35,7 @@ services:
|
||||||
MOCHA_GREP: ${MOCHA_GREP}
|
MOCHA_GREP: ${MOCHA_GREP}
|
||||||
MONGO_SERVER_SELECTION_TIMEOUT: 600000
|
MONGO_SERVER_SELECTION_TIMEOUT: 600000
|
||||||
MONGO_SOCKET_TIMEOUT: 300000
|
MONGO_SOCKET_TIMEOUT: 300000
|
||||||
# SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING: 'true'
|
# OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING: 'true'
|
||||||
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'www.overleaf.test:127.0.0.1'
|
- 'www.overleaf.test:127.0.0.1'
|
||||||
|
|
Loading…
Reference in a new issue