2014-04-02 16:45:41 +00:00
|
|
|
Path = require "path"
|
|
|
|
|
2014-02-14 16:39:05 +00:00
|
|
|
module.exports =
|
|
|
|
internal:
|
|
|
|
filestore:
|
|
|
|
port: 3009
|
2017-12-29 08:14:23 +00:00
|
|
|
host: process.env['LISTEN_ADDRESS'] or "localhost"
|
2014-03-04 15:01:13 +00:00
|
|
|
|
|
|
|
filestore:
|
2014-04-02 16:45:41 +00:00
|
|
|
# Which backend persistor to use.
|
|
|
|
# Choices are
|
2014-03-04 15:01:13 +00:00
|
|
|
# s3 - Amazon S3
|
|
|
|
# fs - local filesystem
|
2014-04-02 16:45:41 +00:00
|
|
|
backend: "fs"
|
2014-03-04 15:01:13 +00:00
|
|
|
stores:
|
2014-04-02 16:45:41 +00:00
|
|
|
# where to store user and template binary files
|
2014-03-04 15:01:13 +00:00
|
|
|
#
|
2014-04-02 16:45:41 +00:00
|
|
|
# For Amazon S3 this is the bucket name to store binary files in.
|
2014-03-04 15:01:13 +00:00
|
|
|
#
|
|
|
|
# For local filesystem this is the directory to store the files in.
|
2014-04-02 16:45:41 +00:00
|
|
|
# Must contain full path, e.g. "/var/lib/sharelatex/data".
|
2014-03-04 15:01:13 +00:00
|
|
|
# This path must exist, not be tmpfs and be writable to by the user sharelatex is run as.
|
2014-04-02 16:45:41 +00:00
|
|
|
user_files: Path.resolve(__dirname + "/../user_files")
|
2015-05-08 14:15:48 +00:00
|
|
|
public_files: Path.resolve(__dirname + "/../public_files")
|
2014-11-27 11:08:29 +00:00
|
|
|
template_files: Path.resolve(__dirname + "/../template_files")
|
2018-07-06 10:05:19 +00:00
|
|
|
# if you are using S3, then fill in your S3 details below,
|
|
|
|
# or use env var with the same structure.
|
2014-04-02 16:45:41 +00:00
|
|
|
# s3:
|
2018-07-06 09:28:02 +00:00
|
|
|
# key: "" # default
|
|
|
|
# secret: "" # default
|
2018-07-10 13:17:37 +00:00
|
|
|
#
|
|
|
|
# s3BucketCreds:
|
2018-07-06 09:28:02 +00:00
|
|
|
# bucketname1: # secrets for bucketname1
|
|
|
|
# auth_key: ""
|
|
|
|
# auth_secret: ""
|
|
|
|
# bucketname2: # secrets for bucketname2...
|
2018-07-10 13:17:37 +00:00
|
|
|
|
|
|
|
s3BucketCreds: JSON.parse process.env['S3_BUCKET_CREDENTIALS'] if process.env['S3_BUCKET_CREDENTIALS']
|
2014-02-14 16:39:05 +00:00
|
|
|
|
2014-05-17 20:01:48 +00:00
|
|
|
path:
|
|
|
|
uploadFolder: Path.resolve(__dirname + "/../uploads")
|
2018-07-06 09:28:02 +00:00
|
|
|
|
2016-05-09 10:37:35 +00:00
|
|
|
commands:
|
|
|
|
# Any commands to wrap the convert utility in, for example ["nice"], or ["firejail", "--profile=/etc/firejail/convert.profile"]
|
|
|
|
convertCommandPrefix: []
|
2014-05-17 20:01:48 +00:00
|
|
|
|
2014-02-14 16:39:05 +00:00
|
|
|
# Filestore health check
|
|
|
|
# ----------------------
|
2014-02-25 16:38:13 +00:00
|
|
|
# Project and file details to check in persistor when calling /health_check
|
2014-02-14 16:39:05 +00:00
|
|
|
# health_check:
|
|
|
|
# project_id: ""
|
|
|
|
# file_id: ""
|