@@ -62,8 +62,8 @@ Environment variables
6262| variables | example values | description |
6363| --------- | ------ | ----------- |
6464| NODE_ENV | ` production ` or ` development ` | show current environment status |
65- | DATABASE_URL | ` postgresql://localhost:5432 /hackmd ` | PostgreSQL connection string |
66- | MONGOLAB_URI | ` mongodb://localhost /hackmd ` | MongoDB connection string |
65+ | DATABASE_URL | ` postgresql://user:pass@host:port /hackmd ` | PostgreSQL connection string |
66+ | MONGOLAB_URI | ` mongodb://user:pass@host:port /hackmd ` | MongoDB connection string |
6767| PORT | ` 80 ` | web port |
6868| SSLPORT | ` 443 ` | ssl web port |
6969| DOMAIN | ` localhost ` | domain name |
@@ -84,8 +84,8 @@ Server-side config.js settings
8484| sslcertpath | ` ./cert/hackmd_io.crt ` | ssl cert path |
8585| sslcapath | ` ['./cert/COMODORSAAddTrustCA.crt'] ` | ssl ca chain |
8686| tmppath | ` ./tmp/ ` | temp file path |
87- | postgresqlstring | ` postgresql://localhost:5432 /hackmd ` | PostgreSQL connection string, fallback to this when not set in environment |
88- | mongodbstring | ` mongodb://localhost /hackmd ` | MongoDB connection string, fallback to this when not set in environment |
87+ | postgresqlstring | ` postgresql://user:pass@host:port /hackmd ` | PostgreSQL connection string, fallback to this when not set in environment |
88+ | mongodbstring | ` mongodb://user:pass@host:port /hackmd ` | MongoDB connection string, fallback to this when not set in environment |
8989| sessionname | ` connect.sid ` | cookie session name |
9090| sessionsecret | ` secret ` | cookie session secret |
9191| 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.
102102Even more, now can show other clients' selections.
103103See more at http://operational-transformation.github.io/
104104
105- ** License under MIT.**
105+ ** License under MIT.**
0 commit comments