• No way for a service (or other non-web) script to get the web hostname

    From Deuce@1:103/705 to GitLab issue in main/sbbs on Mon Jan 25 09:39:12 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/207

    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
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 10:11:38 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1332

    I guess it'd be a matter of loading sbbs.ini and checking Web/global hostname before falling back to system.inet_addr.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 10:58:14 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1335

    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 11:04:14 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1336

    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 11:14:10 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1337

    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?
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 11:17:30 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1338

    Just a thought... if there are Domains specified in letsyncrypt.ini, don't add the default hostname?Would still be nice to be able to configure the email address to register with.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 12:57:10 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1339

    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 12:59:42 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1340

    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).
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 14:11:38 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1342

    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 14:14:26 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1344

    No, I mean sbbs.ini.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab note in main/sbbs on Mon Jan 25 14:15:36 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1345

    sbbsini.js committed.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to GitLab issue in main/sbbs on Mon Jan 25 14:15:36 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/207
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)