mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
proxy static institutions URLs in dev env
This commit is contained in:
@@ -15,6 +15,11 @@ httpAuthUsers[httpAuthUser] = httpAuthPass
|
|||||||
|
|
||||||
sessionSecret = "secret-please-change"
|
sessionSecret = "secret-please-change"
|
||||||
|
|
||||||
|
v1Api =
|
||||||
|
url: "http://#{process.env['V1_HOST'] or 'localhost'}:5000"
|
||||||
|
user: 'overleaf'
|
||||||
|
pass: 'password'
|
||||||
|
|
||||||
module.exports = settings =
|
module.exports = settings =
|
||||||
|
|
||||||
allowAnonymousReadAndWriteSharing:
|
allowAnonymousReadAndWriteSharing:
|
||||||
@@ -157,9 +162,9 @@ module.exports = settings =
|
|||||||
thirdpartyreferences:
|
thirdpartyreferences:
|
||||||
url: "http://#{process.env['THIRD_PARTY_REFERENCES_HOST'] or 'localhost'}:3046"
|
url: "http://#{process.env['THIRD_PARTY_REFERENCES_HOST'] or 'localhost'}:3046"
|
||||||
v1:
|
v1:
|
||||||
url: "http://#{process.env['V1_HOST'] or 'localhost'}:5000"
|
url: v1Api.url
|
||||||
user: 'overleaf'
|
user: v1Api.user
|
||||||
pass: 'password'
|
pass: v1Api.pass
|
||||||
|
|
||||||
templates:
|
templates:
|
||||||
user_id: process.env.TEMPLATES_USER_ID or "5395eb7aad1f29a88756c7f2"
|
user_id: process.env.TEMPLATES_USER_ID or "5395eb7aad1f29a88756c7f2"
|
||||||
@@ -420,7 +425,9 @@ module.exports = settings =
|
|||||||
redirects:
|
redirects:
|
||||||
"/templates/index": "/templates/"
|
"/templates/index": "/templates/"
|
||||||
|
|
||||||
proxyUrls: {}
|
proxyUrls:
|
||||||
|
'/institutions/list': { baseUrl: v1Api.url, path: '/universities/list' }
|
||||||
|
'/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
|
||||||
|
|
||||||
reloadModuleViewsOnEachRequest: true
|
reloadModuleViewsOnEachRequest: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user