mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Upload file to s3: make public a file on upload and allow to configure destination folder
New configurations: - s3folder: (string) folder to save the files inside bucket - s3publicFiles: (boolean) indicate if should send ACL parameters Signed-off-by: Lautaro Alvarez <lautarolalvarez@gmail.com>
This commit is contained in:
parent
8643d9cc99
commit
3585dc9ee6
4 changed files with 18 additions and 11 deletions
|
@ -57,6 +57,9 @@ module.exports = {
|
|||
region: process.env.CMD_S3_REGION,
|
||||
endpoint: process.env.CMD_S3_ENDPOINT
|
||||
},
|
||||
s3bucket: process.env.CMD_S3_BUCKET,
|
||||
s3folder: process.env.CMD_S3_FOLDER,
|
||||
s3publicFiles: process.env.CMD_S3_PUBLIC_FILES,
|
||||
minio: {
|
||||
accessKey: process.env.CMD_MINIO_ACCESS_KEY,
|
||||
secretKey: process.env.CMD_MINIO_SECRET_KEY,
|
||||
|
@ -67,7 +70,6 @@ module.exports = {
|
|||
lutim: {
|
||||
url: process.env.CMD_LUTIM_URL
|
||||
},
|
||||
s3bucket: process.env.CMD_S3_BUCKET,
|
||||
azure: {
|
||||
connectionString: process.env.CMD_AZURE_CONNECTION_STRING,
|
||||
container: process.env.CMD_AZURE_CONTAINER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue