• webv4

    From Lonewolf@1:103/705 to All on Thu Oct 8 09:57:37 2020
    Greetings all,

    I'm trying to use the /webv4 web interface instead of the default /web. I've changed my sbbs.ini file to be...

    Port=8080
    RootDirectory = ../webv4/root
    IndexFileNames = index.html,index.ssjs

    When I attempt to hit the site I get, 404 not found. I believe this happens because there is no index.ssjs file in the root of webv4. If I change IndexFileNames to include index.xjs, which is a file that does exist, I get the following error...

    !JavaScript C:\sbbs\webv4\root\index.xjs.ssjs line 3: TypeError: settings is null

    My questions is, what is the correct way to set up Synchronet to use webv4? I can use the default web without issue, just can't get webv4 to work.

    Thanks!

    ---
    þ Synchronet þ Binary Dreams BBS - binarypibbs.ddns.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Lonewolf on Thu Oct 8 12:58:06 2020
    Re: webv4
    By: Lonewolf to All on Thu Oct 08 2020 09:57:37

    !JavaScript C:\sbbs\webv4\root\index.xjs.ssjs line 3: TypeError: settings
    is null

    https://github.com/echicken/synchronet-web-v4/wiki/Configuration

    Make sure that you have a [web] section in ctrl/modopts.ini with at least the 'guest' and 'web_directory' settings defined.

    In general, you don't need to include any of the other settings unless you want something other than the default.

    My questions is, what is the correct way to set up Synchronet to use
    webv4? I can use the default
    web without issue, just can't get webv4 to work.

    It's a bit up in the air right now due to some recent changes. I'll tidy things up soon and put new documentation on the Synchronet wiki in the near future.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Lonewolf on Thu Oct 8 11:21:09 2020
    Re: webv4
    By: Lonewolf to All on Thu Oct 08 2020 09:57 am

    Greetings all,

    I'm trying to use the /webv4 web interface instead of the default /web.
    I've
    changed my sbbs.ini file to be...

    Port=8080
    RootDirectory = ../webv4/root
    IndexFileNames = index.html,index.ssjs

    This the current default value of the [web] IndexFileName key:
    IndexFileNames = index.html,index.ssjs,index.xjs

    When I attempt to hit the site I get, 404 not found. I believe this happens because there is no index.ssjs file in the root of webv4. If I change IndexFileNames to include index.xjs, which is a file that does exist, I get the following error...

    Yup, that'll be needed.

    !JavaScript C:\sbbs\webv4\root\index.xjs.ssjs line 3: TypeError: settings
    is
    null

    My questions is, what is the correct way to set up Synchronet to use webv4? I can use the default web without issue, just can't get webv4 to work.

    I think you're just missing the [web] section from your ctrl/modopts.ini file. https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/ctrl/modopts.ini

    digital man

    Sling Blade quote #17:
    Charles Bushman: A shovel just makes too goddamned much racket.
    Norco, CA WX: 68.1øF, 74.0% humidity, 2 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Altere@1:103/705 to Lonewolf on Thu Oct 8 13:40:20 2020
    Re: webv4
    By: Lonewolf to All on Thu Oct 08 2020 09:57 am

    IndexFileNames = index.html,index.ssjs

    RootDirectory=/sbbs/webv4/root
    ErrorDirectory=/sbbs/webv4/root/error
    IndexFileNames = index.html,index.ssjs,index.xjs

    When I attempt to hit the site I get, 404 not found. I believe this happens because there is no index.ssjs file in the root of webv4. If I change IndexFileNames to include index.xjs, which is a file that does exist, I get the following error...

    index.xjs is the correct file.

    !JavaScript C:\sbbs\webv4\root\index.xjs.ssjs line 3: TypeError: settings

    When did you download this? I believe this was the error I got a little over 2 weeks ago because all I had were .example directorys like pages.example, renamed to just pages along with other directorys with .examples then it worked. A change in git was made 2 weeks ago to remove these .examples directories.

    -altere

    ---
    þ Synchronet þ Athelstan BBS þ athelstan.org þ telnet:23 / ssh:2222
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Lonewolf@1:103/705 to echicken on Fri Oct 9 08:56:36 2020
    Re: webv4
    By: echicken to Lonewolf on Thu Oct 08 2020 12:58 pm

    That got me going! Thanks for pointing me to the documentation. And thanks to everyone else that responded.

    Lonewolf

    ---
    þ Synchronet þ Binary Dreams BBS - binarypibbs.ddns.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)