🔗 Installation ⤴️

🔗 Connect by IP address ⤴️

$ notebrew status
❌ notebrew is not currently running on port 6444
port          = 6444
cmsdomain     = localhost:6444
contentdomain = localhost:6444
cdndomain     = <not configured>
imgcmd        = <not configured>
maxminddb     = <not configured>
database      = <not configured>
files         = /root/notebrew-files
captcha       = <not configured>
smtp          = <not configured>
proxy         = <not configured>
To configure notebrew's settings, run `notebrew config`.
$ notebrew config port

$ notebrew config port 80

$ notebrew config port
80
$ notebrew status
❌ notebrew is not currently running on port 80
port          = 80
cmsdomain     = xxx.xxx.xxx.xxx
contentdomain = xxx.xxx.xxx.xxx
cdndomain     = <not configured>
imgcmd        = <not configured>
maxminddb     = <not configured>
database      = <not configured>
files         = /root/notebrew-files
captcha       = <not configured>
smtp          = <not configured>
proxy         = <not configured>
dns           = <not configured>
certmagic     = /root/t/certmagic
IPv4          = xxx.xxx.xxx.xxx
IPv6          = xxxx:xxxx:xxxx:xxxx::xxxx
domains       = 
managing      = 
To configure notebrew's settings, run `notebrew config`.
$ notebrew
notebrew is running on http://xxx.xxx.xxx.xxx/files/

🔗 Enable user accounts ⤴️

$ notebrew config database
# == database keys == #
# Refer to `notebrew config` on how to get and set config values.
# dialect         - Database dialect (possible values: sqlite, postgres, mysql).
# filePath        - File path to the sqlite file (if dialect is sqlite).
# user            - Database user.
# password        - Database password.
# host            - Database host.
# port            - Database port.
# dbName          - Database name.
# params          - Database-specific connection parameters (see https://example.com for more info).
# maxOpenConns    - Max open connections to the database (0 means unset, default is unlimited).
# maxIdleConns    - Max idle connections to the database (0 means unset, default is 2).
# connMaxLifetime - Connection max lifetime. e.g. 5m, 10m30s
# connMaxIdleTime - Connection max idle time. e.g. 5m, 10m30s
{
  "dialect": "",
  "filePath": "",
  "user": "",
  "password": "",
  "host": "",
  "port": "",
  "dbName": "",
  "params": {},
  "maxOpenConns": 0,
  "maxIdleConns": 0,
  "connMaxLifetime": "",
  "connMaxIdleTime": ""
}
$ notebrew config database.dialect sqlite

🔗 Configuring your domain name ⤴️

🔗 Configuring HTTPS ⤴️

🔗 Run Notebrew in the background ⤴️

🔗 Change filesystem provider from directory to database (recommended) ⤴️

To show your current filesystem provider, run notebrew config files.

$ notebrew config files
# == files keys == #
# Choose between using a directory, database or sftp filesystem to store files.
# Refer to `notebrew config` on how to get and set config values.
# provider             - Files provider (possible values: directory, database, sftp).
# authenticationMethod - Authentication method for connecting to SFTP server (possible values: password, publickey).
# tempDir              - Temporary directory to store files in while they are being written (if using a directory or sftp).
# dialect              - Database dialect (possible values: sqlite, postgres, mysql).
# filePath             - Files root directory (if using a directory) or file path to the sqlite file (if using sqlite database) or remote root directory (if using SFTP).
# user                 - Database/SFTP user.
# password             - Database/SFTP password.
# host                 - Database/SFTP host.
# port                 - Database/SFTP port.
# dbName               - Database name.
# params               - Database-specific connection parameters (see https://example.com for more info).
# maxOpenConns         - Max open connections to the database/SFTP server (0 means unset, default is unlimited for the database and 1 for the SFTP server).
# maxIdleConns         - Max idle connections to the database (0 means unset, default is 2).
# connMaxLifetime      - Connection max lifetime. e.g. 5m, 10m30s (database only).
# connMaxIdleTime      - Connection max idle time. e.g. 5m, 10m30s (database only).
{
  "provider": "",
  "authenticationMethod": "",
  "tempDir": "",
  "dialect": "",
  "filePath": "",
  "user": "",
  "password": "",
  "host": "",
  "port": "",
  "dbName": "",
  "params": {},
  "maxOpenConns": 0,
  "maxIdleConns": 0,
  "connMaxLifetime": "",
  "connMaxIdleTime": "",
  "followers": [],
  "synchronousReplication": false
}

To set the database provider to database, run notebrew config files.provider database

$ notebrew config files.provider database

Run notebrew config files again to check that the files provider has been set to "database". Restart the notebrew server.