Configuration

In the file piranajs.json the following configuration options are available:

  • folders: Set paths
    • pirana: The parent folder for PiranaJS, APIrana, and pirana_modules
    • piranajs: The folder for PiranaJS
    • pirana_scripts: The folder for Pirana R scripts
    • user_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 license
    • file: Path to the license file
  • commands: Miscellaneous commands
    • apirana: 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 to true 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 to false 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 is http://localhost:8787)

Note: Make sure to restart the server each time you update the configuration.

results matching ""

    No results matching ""