Skip to content

fiction.server

Starts main webserver process.

Terminal window
fiction.server "<ADDRESS>" <OPTIONS> ...

Address can contain port and protocol (http(s)), e.g.:

Terminal window
fiction.server "https://0.0.0.0"
fiction.server "https://0.0.0.0:8080"
fiction.server "http://localhost"

Options syntax: <key>=<value> delimeted by space

optiondescriptiontype
sslenable SSLboolean
ssl_certSSL certificate filefilename
ssl_keySSL public key filefilename
include_lucideinclude lucide.dev icons in metaboolean
include_tailwindinclude TailwindCSS for BashXboolean
expose_addrshow client’s IPs in logsboolean
corewhich core to usestring

bash

The most “bash” way. Uses bash’s accept loadable to perform network socket bind. Requires accept module.

doesn't rely on other commands
slower than other cores
works in single-connection mode only
doesn't support HTTPS

ncat

Uses Nmap’s ncat for network operations.

forking mode
supports HTTPS
requires ncat

socat

Uses socat for network operations.

forking mode
supports HTTPS
requires socat (which is preinstalled on most machines)

netcat

Uses legacy netcat (nc) for network operations.

forking mode
doesn't support HTTPS
slower than other cores
requires netcat-traditional