mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 20:41:47 +00:00
Fall back to old AWS env vars if present
This commit is contained in:
parent
b7e098208f
commit
0b3b71b857
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
Path = require "path"
|
||||
|
||||
# environment variables renamed for consistency
|
||||
# use AWS_ACCESS_KEY_ID-style going forward
|
||||
if process.env['AWS_KEY'] && !process.env['AWS_ACCESS_KEY_ID']
|
||||
process.env['AWS_ACCESS_KEY_ID'] = process.env['AWS_KEY']
|
||||
if process.env['AWS_SECRET'] && !process.env['AWS_SECRET_ACCESS_KEY']
|
||||
process.env['AWS_SECRET_ACCESS_KEY'] = process.env['AWS_SECRET']
|
||||
|
||||
settings =
|
||||
internal:
|
||||
filestore:
|
||||
|
|
Loading…
Reference in a new issue