Configuration reference

Every config.yml setting and command-line flag AppservR reads.

config.yml is written next to the executable the first time you run AppservR, populated with defaults. Settings here need a server restart to take effect; everything else (apps, users, groups, access control) is managed live through the admin web interface.

Settings

KeyDefaultDescription
server.hostlocalhostAddress to listen on. Set to 0.0.0.0 to accept connections from other machines.
server.port8080Port to listen on.
RScriptRscript on Linux, auto-detected under C:/Program Files/R on WindowsPath to the Rscript executable used to launch Shiny apps. Set this explicitly if R isn’t in a standard location, or if you want to point at a specific R installation.
database.path<executable folder>/data.dbPath to the SQLite database file holding apps, users, and groups.
modeprodprod logs at WARNING level; debug logs at DEBUG level.

database.type also exists in the file but sqlite is the only backend AppservR supports today, so it shouldn’t be changed.

Command-line flags

The serve command accepts flags that override the corresponding config.yml setting for that run, without writing them back to the file:

./appservR serve -a 0.0.0.0 -p 9090 -m debug
FlagLong formOverrides
-a--addressserver.host
-p--portserver.port
-m--modemode

Environment variables

VariableEffect
APPSERVR_AUTH_SECRETSigning secret for login sessions. See Running in production → for why you’ll want to set this.