Use file storage out of the box

This commit is contained in:
James Allen 2014-03-05 12:49:51 +00:00
parent 36e31fda5d
commit f238f7726f
2 changed files with 14 additions and 13 deletions

3
.gitignore vendored
View file

@ -6,8 +6,11 @@ web
document-updater document-updater
clsi clsi
filestore filestore
track-changes
compiles compiles
cache cache
user_files
template_files
db.sqlite db.sqlite

View file

@ -21,29 +21,27 @@ module.exports =
# #
# ShareLaTeX needs somewhere to store binary files like images. # ShareLaTeX needs somewhere to store binary files like images.
# There are currently two options: # There are currently two options:
# Amazon S3 (the default) # Your local filesystem (the default)
# local filesystem # Amazon S3
filestore: filestore:
# which backend persistor to use. # which backend persistor to use.
# choices are # choices are
# s3 - Amazon S3 # s3 - Amazon S3
# fs - local filesystem # fs - local filesystem
backend: "s3" backend: "fs"
stores: stores:
# where to store user and template binary files # where to store user and template binary files
# #
# For Amazon S3 this is the bucket name to store binary files in # For Amazon S3 this is the bucket name to store binary files
# Must contain full url like: <bucketname>.s3.amazonaws.com
# #
# For local filesystem this is the directory to store the files in. # For local filesystem this is the directory to store the files in.
# 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. # This path must exist, not be tmpfs and be writable to by the user sharelatex is run as.
user_files: "" user_files: Path.resolve(__dirname + "/../user_files")
s3: # Uncomment if you need to configure your S3 credentials
# if you are using S3, then fill in your S3 details below # s3:
key: "" # # if you are using S3, then fill in your S3 details below
secret: "" # key: ""
# secret: ""
# Databases # Databases
# --------- # ---------