summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2015-09-25 11:29:02 +0800
committerWu Cheng-Han2015-09-25 11:29:02 +0800
commitc4c9c4fed63249d21c1a06becc1257136ceafa1a (patch)
treea1670aba81a7cf0207aaba0a62a490f6eeb886d4
parente08916763e38d80db58ef688f4f0397ffe5da45c (diff)
parent0d8a1129422e4f0e208ad6567e67adffae6af51e (diff)
Merge branch 'master' of https://github.com/jackycute/HackMD
Diffstat (limited to '')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index aa051e9b..7e238a12 100644
--- a/README.md
+++ b/README.md
@@ -62,8 +62,8 @@ Environment variables
| variables | example values | description |
| --------- | ------ | ----------- |
| NODE_ENV | `production` or `development` | show current environment status |
-| DATABASE_URL | `postgresql://localhost:5432/hackmd` | PostgreSQL connection string |
-| MONGOLAB_URI | `mongodb://localhost/hackmd` | MongoDB connection string |
+| DATABASE_URL | `postgresql://user:pass@host:port/hackmd` | PostgreSQL connection string |
+| MONGOLAB_URI | `mongodb://user:pass@host:port/hackmd` | MongoDB connection string |
| PORT | `80` | web port |
| SSLPORT | `443` | ssl web port |
| DOMAIN | `localhost` | domain name |
@@ -84,8 +84,8 @@ Server-side config.js settings
| sslcertpath | `./cert/hackmd_io.crt` | ssl cert path |
| sslcapath | `['./cert/COMODORSAAddTrustCA.crt']` | ssl ca chain |
| tmppath | `./tmp/` | temp file path |
-| postgresqlstring | `postgresql://localhost:5432/hackmd` | PostgreSQL connection string, fallback to this when not set in environment |
-| mongodbstring | `mongodb://localhost/hackmd` | MongoDB connection string, fallback to this when not set in environment |
+| postgresqlstring | `postgresql://user:pass@host:port/hackmd` | PostgreSQL connection string, fallback to this when not set in environment |
+| mongodbstring | `mongodb://user:pass@host:port/hackmd` | MongoDB connection string, fallback to this when not set in environment |
| sessionname | `connect.sid` | cookie session name |
| sessionsecret | `secret` | cookie session secret |
| sessionlife | `14 * 24 * 60 * 60 * 1000` | cookie session life |
@@ -102,4 +102,4 @@ Which make concurrent editing safe and not break up other users' operations.
Even more, now can show other clients' selections.
See more at http://operational-transformation.github.io/
-**License under MIT.** \ No newline at end of file
+**License under MIT.**