Hello,
As part of our automated setup we are using the non-interactive installation method along the lines of:
php flarum install --file=defaults.yml
There's no mention of this in the official docs, but you can find a few references to it in this forum.
One of the options one tells the installer is the Forum's base URL, by means of the baseUrl key in the supplied YAML file. The installer will then eventually write Flarum's own config.php. The issue I am facing is that, if the base URL contains a port (say http://localhost:8888), then the port is not written to config.php, only the protocol & host is. Illustrating my point:
# Defaults file contains base URL with port
/opt/flarum # grep baseUrl /opt/flarum/config.yml
baseUrl: http://localhost:8888
# Installer is ran
/opt/flarum # su - flarum -c 'php /opt/flarum/flarum install --file=/opt/flarum/config.yml'
Installing Flarum...
[snip]
DONE.
# Config file does not contain port
/opt/flarum # grep url /opt/flarum/config.php
'url' => 'http://localhost',
I have not tried if this issue also arises with the interactive web-based installer.
Is this a bug somewhere within Flarum, or is there a separate configuration key to be used to configure the port?