mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
removed relative path from upload_url
This commit is contained in:
2
app.js
2
app.js
@@ -99,7 +99,7 @@ function start() {
|
||||
loadConfig();
|
||||
|
||||
nconf.set('url', nconf.get('base_url') + (nconf.get('use_port') ? ':' + nconf.get('port') : '') + nconf.get('relative_path'));
|
||||
nconf.set('upload_url', path.join(path.sep, nconf.get('relative_path'), 'uploads', path.sep));
|
||||
nconf.set('upload_url', path.join(path.sep, 'uploads', path.sep));
|
||||
nconf.set('base_dir', __dirname);
|
||||
nconf.set('views_dir', path.join(__dirname, 'public/templates'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user