Skip to content

Commit 341720d

Browse files
committed
Merge branch 'remove_session' of https://github.com/cesine/FieldDBWebServer into reduce_logs
2 parents fdce84c + a168cbe commit 341720d

4 files changed

Lines changed: 0 additions & 11 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Suggested changes:
8686

8787
* change the `port` to the port you want to use
8888
* change `ssl` to have the path of your ssl certificates and key,
89-
* change `session_key` to something else
9089
* change `corpus` to the corpus service you want to contact, and
9190

9291
Production mode is controlled by an environment variable. Here is how you would set the environment variables if you are running the server via a non-privileged user `fielddb`.

config/default.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ var config = {
6767
cert: fs.readFileSync(__dirname + "/fielddb_debug.crt", "utf8")
6868
},
6969

70-
// This should be customized in production to another string
71-
session_key: "uwotm8",
72-
7370
// This creates a url to look up the
7471
// corpus details for the user's pages. It is possible to use http instead of
7572
// https if you are unable to set up your local CouchDB for SSL.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"consolidate": "^0.13.1",
4040
"debug": "^2.6.3",
4141
"express": "^4.13.3",
42-
"express-session": "^1.11.3",
4342
"fielddb": "https://github.com/FieldDB/FieldDB.git",
4443
"forever": "^0.15.1",
4544
"handlebars": "^4.0.2",

server.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var debug = require("debug")("server");
77
var favicon = require("serve-favicon");
88
var logger = require("morgan");
99
var methodOverride = require("method-override");
10-
var session = require("express-session");
1110
var bodyParser = require("body-parser");
1211
var errorHandler = require("./middleware/error-handler").errorHandler;
1312
var consolidate = require("consolidate");
@@ -40,11 +39,6 @@ app.set("views", path.join(__dirname, "views"));
4039
app.use(favicon(__dirname + "/public/favicon.ico"));
4140
app.use(logger("common"));
4241
app.use(methodOverride());
43-
app.use(session({
44-
resave: true,
45-
saveUninitialized: true,
46-
secret: config.session_key
47-
}));
4842
app.use(bodyParser.json());
4943
app.use(bodyParser.urlencoded({
5044
extended: true

0 commit comments

Comments
 (0)