While each service can be configured with a unique Hostname key (exposed via system.host_name), there doesn't appear to be a way to get the various services host names via JavaScript. Required for correct solution to !84 (closed)
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
For a "best guess", that'd work, but I don't think there's any requirement that the web server actually "know" its public hostname. There could be several actual public hostnames/aliases, all pointing to the same interface that the web server is listening on.
The Hostname key is the "correct" place for the public host name for the services (including the web server). Its existence implies a correctness requirement (I suppose there's no "requirement" that anything be correct).
The idea of the issue is that there should be a single source of truth for the Sysops preferred host name for the web server. Requiring it to be configured in multiple places because the place shared by all scripts isn't required to be correct is odd.
In the case of multiple hostnames being equally preferred/valid (e.g. "www.mybbs.com" and "mybbs.com"), which should go in the Hostname key and does it matter?
The default one. Whatever hostname you want to be used by anything that uses "the hostname" is the one you should put in there. The only thing that should matter is that the hostname is a public hostname for the service.
I think "the place shared by all scripts" you're referring to is system.inet_addr (?). system.inet_addr is the hostname for receiving Internet e-mail, not (necessarily) the hostname of the web server.
That would still require you to add the hostname in two different places, except then it would be conditional on something else which would be more confusing, not less.
Making the email address configurable is a different thing though... I'm not opposed to that (but the default should work as long as the BBS runs a mail server).