This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scaffolded .env-base file and now relying on process.env instead of t…
…he old CONFIG
- Loading branch information
1 parent
525aa3b
commit 3c208a2
Showing
16 changed files
with
618 additions
and
843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This is a base file for configuring the speckle server. Steps: | ||
# 2. Copy it to .env ( `cp .env-base .env`) | ||
# 2. Configure the .env file with your settings. | ||
# 3. Start the speckle server! | ||
# | ||
# NOTE: If these are set through a different process, eg docker, pm2, or command line | ||
# they will not be overwritten. | ||
|
||
# SERVER_NAME: The server name is important, as it will help users differentiate | ||
# between multiple accounts. | ||
SERVER_NAME="Default Server" | ||
|
||
|
||
# PORT: The port you want the speckle server to run on. Make sure the port is accesible | ||
# if you have any firewalls set up (ie, ufw). | ||
PORT=3000 | ||
|
||
# MAX_PROC: The maximum amount of service workers to start. If this is not specified, | ||
# Speckle will fork out as many as the machine's processor cores. To specify it, | ||
# just uncomment the line below. | ||
# MAX_PROC=2 | ||
|
||
# REQ_SIZE: The request size protects your server from being flooded with too much data. | ||
REQ_SIZE=10mb | ||
|
||
# This is used in the encryption of the api access tokens. | ||
# Please change it to something random! | ||
SESSION_SECRET="helloworld" | ||
|
||
# DBs | ||
# Mongodb URI: this is the uri string that the server will use to connect to your mongo instance. | ||
# The default string below will work with an out-of-the-box local mongodb deployment. | ||
# For more info, see: https://docs.mongodb.com/manual/reference/connection-string/ | ||
MONGODB_URI="mongodb://localhost:27017/speckle" | ||
|
||
# Redis URI: this is the uri string that the server will use to connect to your redis instance. | ||
# The default string should work with an out-of-the-box local redis deployment. | ||
# For more info, see http://www.iana.org/assignments/uri-schemes/prov/redis | ||
REDIS_URL="redis://localhost:6379" | ||
|
||
# If you want your api calls to return pretty json, set this to true. It will cause | ||
# the reponses to be ±10% bigger. | ||
INDENT_RESPONSES=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
let serverName = process.env.SPECKLE_NAME ? process.env.SPECKLE_NAME : 'Default Speckle Server' | ||
let maxRequestSize = process.env.REQ_SIZE || '10mb' | ||
// let serverName = process.env.SPECKLE_NAME ? process.env.SPECKLE_NAME : 'Default Speckle Server' | ||
// let maxRequestSize = process.env.REQ_SIZE || '10mb' | ||
|
||
module.exports = { | ||
serverDescription: { | ||
serverName: serverName, | ||
maxRequestSize: maxRequestSize, | ||
indentResponses: process.env.INDENT_RESPONSES == 'true' ? true : false | ||
}, | ||
mongo: { | ||
url: process.env.MONGODB_URI || process.env.MONGO_URI || 'mongodb://mongo:27017/speckle' | ||
}, | ||
redis: { | ||
url: process.env.REDIS_URL || `redis://${process.env.REDIS_ADDR || 'redis'}:${process.env.REDIS_PORT || '6379'}` | ||
}, | ||
sessionSecret: 'NaturalSparklingWaterMineral' | ||
} | ||
// module.exports = { | ||
// serverDescription: { | ||
// serverName: serverName, | ||
// maxRequestSize: maxRequestSize, | ||
// indentResponses: process.env.INDENT_RESPONSES == 'true' ? true : false | ||
// }, | ||
// mongo: { | ||
// url: process.env.MONGODB_URI || process.env.MONGO_URI || 'mongodb://mongo:27017/speckle' | ||
// }, | ||
// redis: { | ||
// url: process.env.REDIS_URL || `redis://${process.env.REDIS_ADDR || 'redis'}:${process.env.REDIS_PORT || '6379'}` | ||
// }, | ||
// sessionSecret: 'NaturalSparklingWaterMineral' | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.