Skip to content

Commit

Permalink
Merge pull request #852 from steemit/0.1.161214-release-updates
Browse files Browse the repository at this point in the history
make cookie name configurable
  • Loading branch information
Mike authored Dec 14, 2016
2 parents 6b4a3d3 + 5056243 commit 65bd357
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions config/steem-example.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"db": {
"username": "root",
"password": null,
"password": "",
"database": "steemit_dev",
"host": "127.0.0.1",
"dialect": "mysql"
},
"session_cookie_key": "stm-dev",
"session_key": "steemses",
"server_session_secret": "somelongsecretstring",
"grant": {
"server": {
"protocol": "http",
Expand All @@ -31,8 +33,8 @@
]
}
},
"server_session_secret": "",
"helmet": {},
"helmet": {
},
"registrar": {
"account": "-",
"signing_key": "-",
Expand Down Expand Up @@ -67,9 +69,9 @@
"username": "guest",
"password": ""
},
"mixpanel": "",
"img_proxy_prefix": "",
"ipfs_prefix": "",
"google_analytics_id": "",
"disable_signups": false,
"read_only_mode": false,
"uploadImage": "https://..."
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const cacheOpts = {maxAge: 86400000, gzip: true};

app.keys = [config.session_key];
const crypto_key = config.server_session_secret;
session(app, {maxAge: 1000 * 3600 * 24 * 60, crypto_key});
session(app, {maxAge: 1000 * 3600 * 24 * 60, crypto_key, key: config.session_cookie_key});
csrf(app);

app.use(mount(grant));
Expand Down

0 comments on commit 65bd357

Please sign in to comment.