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

    From Deuce@VERT to GitLab issue in main/sbbs on Mon Jan 25 17: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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael J. Ryan@VERT to GitLab note in main/sbbs on Mon Jan 25 18: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Jan 25 18: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab note in main/sbbs on Mon Jan 25 19: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Jan 25 19: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?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael J. Ryan@VERT to GitLab note in main/sbbs on Mon Jan 25 19: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab note in main/sbbs on Mon Jan 25 20: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab note in main/sbbs on Mon Jan 25 20:59:43 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Jan 25 22: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab note in main/sbbs on Mon Jan 25 22:14:27 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1344

    No, I mean sbbs.ini.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab note in main/sbbs on Mon Jan 25 22:15:37 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/207#note_1345

    sbbsini.js committed.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to GitLab issue in main/sbbs on Mon Jan 25 22:15:37 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/207

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net