mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closed #2150
This commit is contained in:
@@ -29,7 +29,7 @@ questions.main = [
|
|||||||
{
|
{
|
||||||
name: 'base_url',
|
name: 'base_url',
|
||||||
description: 'URL used to access this NodeBB',
|
description: 'URL used to access this NodeBB',
|
||||||
'default': nconf.get('base_url') || 'http://localhost:4567',
|
'default': nconf.get('base_url') + (nconf.get('use_port') ? ':' + nconf.get('port') : '') || 'http://localhost:4567',
|
||||||
pattern: /^http(?:s)?:\/\//,
|
pattern: /^http(?:s)?:\/\//,
|
||||||
message: 'Base URL must begin with \'http://\' or \'https://\'',
|
message: 'Base URL must begin with \'http://\' or \'https://\'',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user