mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fixed subfolder installs again (a bit), also stopped apple-touch-icon from clobbering /apple-touch-icon
This commit is contained in:
@@ -182,7 +182,7 @@ module.exports = function(app, data) {
|
||||
app.use(express.compress());
|
||||
|
||||
app.use(express.favicon(path.join(__dirname, '../../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico')));
|
||||
app.use('/apple-touch-icon', middleware.routeTouchIcon);
|
||||
app.use(nconf.get('relative_path') + '/apple-touch-icon', middleware.routeTouchIcon);
|
||||
|
||||
app.use(require('less-middleware')({
|
||||
src: path.join(__dirname, '../../', 'public'),
|
||||
@@ -221,7 +221,7 @@ module.exports = function(app, data) {
|
||||
compileTemplates(pluginTemplates);
|
||||
});
|
||||
|
||||
app.use(app.router);
|
||||
app.use(nconf.get('relative_path'), app.router);
|
||||
|
||||
app.use(nconf.get('relative_path'), express.static(path.join(__dirname, '../../', 'public'), {
|
||||
maxAge: app.enabled('cache') ? 5184000000 : 0
|
||||
|
||||
Reference in New Issue
Block a user