mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 23:53:29 +02:00
Ensure that all API calls and static resources are in their own unique paths. This makes it easier to add a load balancer on top of everything.
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = function(options) {
|
||||
})
|
||||
|
||||
app.set('view engine', 'jade')
|
||||
app.set('views', pathutil.resource('auth-ldap/views'))
|
||||
app.set('views', pathutil.resource('auth/ldap/views'))
|
||||
app.set('strict routing', true)
|
||||
app.set('case sensitive routing', true)
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = function(options) {
|
||||
app.use(validator())
|
||||
app.use('/static/bower_components',
|
||||
serveStatic(pathutil.resource('bower_components')))
|
||||
app.use('/static', serveStatic(pathutil.resource('auth-ldap')))
|
||||
app.use('/static/auth/ldap', serveStatic(pathutil.resource('auth/ldap')))
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken());
|
||||
|
||||
Reference in New Issue
Block a user