Configuration
In the file piranajs.json
the following configuration options are available:
folders
: Set pathspirana
: The parent folder for PiranaJS, APIrana, andpirana_modules
piranajs
: The folder for PiranaJSpirana_scripts
: The folder for Pirana R scriptsuser_home_folder
: If specified, overrides the default of PiranaJS to show the user's$HOME
folder on startup (when no projects have been defined).
license
: Settings related to the PiranaJS licensefile
: Path to the license file
commands
: Miscellaneous commandsapirana
: The command to invoke apirana (apirana
by default)
ssl
: Settings for security (SSL)key
: SSL key (./ssl/server_placeholder.key
)cert
: SSL certificate (./ssl/server_placeholder.crt
)
general
use_https
: Secure mode, use HTTPS instead of HTTP.false
by default.port_http
: 8000 by default.port_https
: 8001 by default.trust_proxy
:true
/false
. (true
by default. This feature has to be set totrue
whenever PiranaJS is run behind a proxy server.)allow_tty
:true
/false
. PiranaJS contains a builtin shell/TTY simulator. At the moment this functionality is not completely secure, so it is advised to set this tofalse
unless in development mode or you are the only person that has access to the server you are running PiranaJS on.
links
: Links to other apps or sites, which will be shown in menubar.RStudio
(default ishttp://localhost:8787
)
Note: Make sure to restart the server each time you update the configuration.