mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Give priority to static files. They don't need cookies, auth or validation.
This commit is contained in:
parent
59178ee837
commit
f432dc9fb9
1 changed files with 3 additions and 2 deletions
|
@ -33,6 +33,9 @@ module.exports = function(options) {
|
||||||
io.set('log level', 1)
|
io.set('log level', 1)
|
||||||
io.set('browser client', false)
|
io.set('browser client', false)
|
||||||
|
|
||||||
|
app.use('/static/lib', express.static(pathutil.resource('lib')))
|
||||||
|
app.use('/static', express.static(pathutil.resource('app')))
|
||||||
|
|
||||||
app.use(express.cookieParser(options.secret))
|
app.use(express.cookieParser(options.secret))
|
||||||
app.use(express.cookieSession({
|
app.use(express.cookieSession({
|
||||||
key: options.ssid
|
key: options.ssid
|
||||||
|
@ -45,8 +48,6 @@ module.exports = function(options) {
|
||||||
app.use(express.urlencoded())
|
app.use(express.urlencoded())
|
||||||
app.use(express.csrf())
|
app.use(express.csrf())
|
||||||
app.use(validator())
|
app.use(validator())
|
||||||
app.use('/static/lib', express.static(pathutil.resource('lib')))
|
|
||||||
app.use('/static', express.static(pathutil.resource('app')))
|
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
var push = zmq.socket('push')
|
var push = zmq.socket('push')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue