mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[web] change status page URL to HTTPS everywhere (#26587)
* [web] change status page URL to HTTPS everywhere Also open all links to the status page or admin email in a new tab. * [server-ce] explicit protocol matching Co-authored-by: Brian Gough <brian.gough@overleaf.com> --------- Co-authored-by: Brian Gough <brian.gough@overleaf.com> GitOrigin-RevId: d7d12eef4efc737c5d70fc969c862acae9faf14c
This commit is contained in:
@@ -184,7 +184,10 @@ const settings = {
|
||||
siteUrl: (siteUrl = process.env.OVERLEAF_SITE_URL || 'http://localhost'),
|
||||
|
||||
// Status page URL as displayed on the maintenance/500 pages.
|
||||
statusPageUrl: process.env.OVERLEAF_STATUS_PAGE_URL,
|
||||
statusPageUrl: process.env.OVERLEAF_STATUS_PAGE_URL ?
|
||||
// Add https:// protocol prefix if not set (Allow plain-text http:// for Server Pro/CE).
|
||||
(process.env.OVERLEAF_STATUS_PAGE_URL.startsWith('http://') || process.env.OVERLEAF_STATUS_PAGE_URL.startsWith('https://')) ? process.env.OVERLEAF_STATUS_PAGE_URL : `https://${process.env.OVERLEAF_STATUS_PAGE_URL}`
|
||||
: undefined,
|
||||
|
||||
// The name this is used to describe your Overleaf Community Edition Installation
|
||||
appName: process.env.OVERLEAF_APP_NAME || 'Overleaf Community Edition',
|
||||
|
||||
Reference in New Issue
Block a user