overleaf/services/filestore/config/settings.defaults.coffee

44 lines
1.3 KiB
CoffeeScript
Raw Normal View History

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