Listed below are all the directives that are supported in Shiny Server config files.
Applies to indicates the kind of parent scope that this directive normally appears inside.
Inheritable means that you can put this directive at a higher level in the hierarchy and it will be inherited by any children to which it might apply. Inherited directives can be overridden by using the directive again in a child scope.
The user the app should be run as. This user should have the minimal amount of privileges necessary to successfully run the application (i.e. read-only access to the Shiny application directory). Note that this directive cannot be used with user_apps, as user_apps always run as the user who owns the application.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| users | String | multiple | The username that should be used to run the app. If using user_dirs, this can also be a special keyword such as :HOME_USER: which will instruct user_dirs to run as the user in whose home directory the application exists. Alternatively it could be :AUTH_USER: which will run the application as the user who the visitor is logged in as. If using a special keyword like :HOME_USER: or :AUTH_USER:, you can specify an additional username afterwards which will be used when the special cases are not available, such as if the user is not logged in and the location is not served by user_dirs. |
The file path of the HTTP access log.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The file path where the access log should be written | |
| format | String | optional | The log file format; see the Connect documentation (http://www.senchalabs.org/connect/logger.html) under "Formats" | default |
Top-level
Yes
Declares an HTTP server. You need one of these for each port/IP address combination this Shiny Server instance should listen on.
This directive has no parameters.
Top-level
Yes
listen, server_name
Directs the enclosing server scope to listen on the specified port/IP address combination.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| port | Integer | required | Port to listen on | |
| host | String | optional | IPv4 address to listen on (* or 0.0.0.0 for all); hostnames are not currently allowed, please use raw IPv4 address only |
* |
server
Yes
Directs the enclosing server scope to only honor requests that have the given host headers (i.e. virtual hosts).
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| names | String | multiple | The virtual hostname(s) to bind this server to |
server
Yes
Creates a scope that configures the given URL as a website (site_dir), specific application (app_dir), autouser root (user_apps), autouser root with run_as support (user_dirs), or redirect to a different URL (redirect).
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The request path that this location should match |
server, location
Yes
run_as, location, site_dir, directory_index, user_apps, user_dirs, app_dir, redirect, log_dir, log_file_mode, members_of, application, pam_sessions_profile, exec_supervisor, r_path, bookmark_state_dir, disable_websockets, disable_protocols, log_as_user, reconnect, sanitize_errors, frame_options
Configures the enclosing location scope to be a website that can contain both Shiny applications and unrelated static assets in a single directory tree.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| rootPath | String | required | The path to the root directory of the website |
application, location
Yes
When enabled, if a directory is requested by the client and an index.html file is not present, a list of the directory contents is created automatically and returned to the client. If this directive is not present in a custom config file, the default behavior is to disable directory indexes. However, it is enabled if no config file is present at all (in other words, the default config file has it enabled).
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | required | Whether directory contents should automatically displayed |
DEPRECATED! This directive has been deprecated in favor of user_dirs, which offers more flexibility with regards to the run_as configuration. Configures the enclosing location scope to be an autouser root, meaning that applications will be served up from users' ~/ShinyApps directories and all Shiny processes will run as the user in whose directory the application is found.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether this location should serve up all users' ~/ShinyApps directories | true |
location
Yes
Configures the enclosing location scope to be an autouser root, meaning that applications will be served up from users' ~/ShinyApps directories. This directive does respect an affiliated run_as setting, meaning that the applications will be executed as whichever user is configured in the applicable run_as setting. Note that many distributions, by default, will prohibit users from being able to access each other's home directories.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether this location should serve up all users' ~/ShinyApps directories | true |
location
Yes
Configures the enclosing location scope to serve up the specified Shiny application.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The path to the Shiny application directory |
location
Yes
Configures the enclosing location to redirect all requests to the specified URL.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| url | String | required | The URL (or base URL) to redirect to | |
| statusCode | Integer | optional | The status code to send with the response (usually 301 for permanent redirects or 302 for temporary redirects) | 302 |
| exact | Boolean | optional | Whether to match on the URL exactly; if false, any subpaths will match as well | true |
location
Yes
Directs the application to write error logs to the specified directory. Only applies to location scopes that are configured with app_dir or site_dir, as user_apps (autouser) always writes error logs to ~/ShinyApps/log.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The path to which application log files should be written |
Specifies the file permissions to use for newly created application log files. The specified mode will be combined with the process's file mode creation mask, or umask, which is generally 022.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| mode | String | optional | The file mode to use, specified as an octal number (a leading zero must be used). Set this to 0644 to allow all users on the system to read log files. |
0660 |
Restricts a user_apps or user_dirs (autouser) scope to require membership in one or more groups (or, if no arguments are passed, lifts group restrictions from a members_of directive in a parent scope).
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| groups | String | multiple | Users must be a member of at least one of these groups in order to deploy applications; if no groups are provided, then all users are allowed |
Restricts a location to require membership in one or more groups in order to access the application.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| groups | String | multiple | Users must be a member of at least one of these groups in order to access the application |
Top-level, server, location, admin, application
Yes
Restricts a location to only be available to the specified users.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| users | String | multiple | Users who are allowed to access the application |
Top-level, server, location, admin, application
Yes
Configures the server to use the specified file as the username/password store. The file should contain zero or more lines in the format username + ":{scrypt}" + hashed-password, where hashed-password is the scrypted password in base64 format. Use the sspasswd utility to create and modify passwd files.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The file path where the username/password file can be found |
Top-level
Yes
Configures the server to use proxied authentication. In this mode, authentication is performed by an intermediary proxy between the user and Shiny Server Pro. The proxy is the one to handle authentication and will provide the username and groups of the current user in separate HTTP headers.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| userHeader | String | optional | The name of the HTTP header containing the username of the current user. | X-Auth-Username |
| groupsHeader | String | optional | The name of the HTTP header containing the groups for the current user. Groups should be comma-delimited. Leave this value empty if your proxy will not provide group information. |
Top-level
Yes
Approximate time in minutes that a user should be kept logged in, from the time that they finish using their last application. The default value is 120.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| minutes | Float | required | The number of minutes; must be greater than or equal to 10 or applications may behave unpredictably |
Top-level
Yes
Configure Google Analytics tracking code to be inserted in Shiny application pages.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| gaid | String | required | The Google tracking ID, for example, UA-18988-1 |
Top-level, server, location, application
Yes
Defines the amount of time Shiny Server will wait for an R process to start before giving up. Defaults to 60 seconds.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| timeout | Integer | required | The number of seconds to wait for the application to start. |
Top-level, server, location, application
Yes
Defines the amount of time an R process will persist with no connections before being terminated. Defaults to 5 seconds.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| timeout | Integer | required | The number of seconds to keep an empty R process alive before killing it. |
Top-level, server, location, application
Yes
Defines how long an idle user's session should remain connected to the server. Defaults to 0.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| timeout | Integer | required | The number of seconds after which an idle session will be disconnected. If 0, sessions will never be automatically disconnected. |
Top-level, server, location, application
Yes
Defines how long a keepalive connection will sit between HTTP requests/responses before it is closed. Defaults to 45 seconds.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| timeout | Float | required | The number of seconds to keep a connection alive between requests/responses. |
Top-level
Yes
How often the SockJS server should send heartbeat packets to the server. These are used to prevent proxies and load balancers from closing active SockJS connections. Defaults to 25 seconds.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| delay | Float | required | The number of seconds to wait between heartbeat packets. |
Top-level
Yes
How long the SockJS server should wait between HTTP requests before considering the client to be disconnected. Defaults to 5 seconds. If this value needs to be adjusted above 10 seconds, it's a good idea to disable websockets using the disable_websockets directive, as that transport protocol has an effective 10 second limit built in.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| delay | Float | required | The number of seconds to wait before giving up. |
Top-level
Yes
A basic scheduler which will spawn one single-threaded R worker for each application. If no scheduler is specified, this is the default scheduler.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| maxRequests | Integer | optional | The maximum number of requests to assign to this scheduler before it should start returning rejecting incoming traffic using a '503 - Service Unavailable' message. Once this threshold is hit, users attempting to initialize a new session will receive 503 errors. | 100 |
Top-level, server, location, application
Yes
A multi-process scheduler which will load-balance incoming traffic to multiple R processes. Each incoming request will be routed to the running worker with the fewest open connections, unless the request is explicitly targetting a particular worker.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| maxRequestsPerProc | Integer | required | The maximum number of simultaneous requests (web socket or HTTP) per R process. | |
| loadFactor | Float | required | A decimal value in (0, 1] defining the capacity at which a new R process should be pre-emptively spawned. | |
| maxProc | Integer | required | The maximum number of concurrent R processes to run for this application. |
Top-level, server, location, application
Yes
The absolute paths to the files to use as the SSL key and certificate for this server.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| key_path | String | required | The absolute path to the SSL key for this server. | |
| cert_path | String | required | The absolute path to the SSL certificate for this server. |
If present, will allow users to override the global defaults for a scheduler by customizing the parameters associated with a scheduler or even the type of scheduler used.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not this is enabled. Default is true. | true |
Top-level
Yes
If present, will provide an administrative interface on the specified port allowing specified users to monitor deployed Shiny applications.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| port | Integer | required | The port on which the admin interface will be made available. |
Top-level
Yes
ssl, template_dir
Enumerates the HTTP headers that should be trusted and passed from the original HTTP request to the Shiny application.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| headers | String | multiple | The list of headers which should be trusted. |
Top-level, server, location, application
Yes
Authenticate to a Google Application using a configured application ID and secret.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| id | String | required | The Client ID available in your Google Apps Console. | |
| secret | String | required | The Client Secret available in your Google Apps Console, or the absolute path to the file storing the secret. If using a file path, Shiny Server will retain root privileges under the assumption that the file is only readable by the root user. | |
| filters | String | multiple | Used to limit the Google users who will be granted access to the system by filtering based on their email address. Filters may begin with a '+' or a '-' to indicate whether this is a 'positive' match (in which case these users should be granted access), or a 'negative' match (in which case any matching email should be rejected). These filters will iteratively be applied to the incoming email address until a match is found, at which point the user will either be admitted or rejected based on whether the filter was a 'positive' or 'negative' filter. A filter not beginning with a '+' or '-' is assumed to be a 'positive' filter. The asterisk can be used as a wildcard. |
Top-level
Yes
Authenticate using the local server's PAM configuration.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| forwardPassword | Boolean | optional | If true, will retain the user's password when they login so that it can be provided to PAM when spawning processes on this user's behalf. This can be used where PAM features such as Kerberos or pam_mount which require the user's password are in use. |
false |
Top-level
Yes
Define how the LDAP (or Active Directory) server will be accessed.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| url | String | required | The URL for the LDAP server and the root DIT of the directory. The URL can either use the unsecured 'ldap://' protocol, or the SSL-secured 'ldaps://' protocol, followed by the hostname or IP address of the LDAP server. Optionally, a port number can be provided after the LDAP server's address prefixed by a colon. If no port number is provided, the default port numbers of 389 and 636 for 'ldap://' and 'ldaps://' (respectively) will be used. This should be followed by a forward slash and the root DIT of the directory to use for authentication. For example, one configuration could be 'ldaps://ldap.exapmle.org:1636/dc=example,dc=org'. |
Top-level
Yes
Define how the Active Directory server will be accessed. This provides the same functionality as auth_ldap, but tailors the defaults to be appropriate for Active Directory.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| url | String | required | The URL for the Active Directory (AD) server and the root DIT of the directory. The URL can either use the unsecured 'ldap://' protocol, or the SSL-secured 'ldaps://' protocol, followed by the hostname or IP address of the AD server. Optionally, a port number can be provided after the LDAP server's address prefixed by a colon. If no port number is provided, the default port numbers of 389 and 636 for 'ldap://' and 'ldaps://' (respectively) will be used. This should be followed by a forward slash and the root DIT of the directory to use for authentication. For example, one configuration could be 'ldaps://ad.example.org:1636/dc=example,dc=org'. | |
| userSuffix | String | required | The suffix (typically the domain name) to be appended to usernames when attempting to bind to the AD server. The default user_bind_template will be set to '{{username}}@' followed by the userSuffix. This setting will be ignored if user_bind_template is explicitly set. |
Top-level
Yes
ldap_timeout, base_bind, user_bind_template, trusted_ca, check_ssl_ca, user_filter, user_search_base, group_search_base, group_filter, group_name_attribute
Define the timeout for the parent LDAP connection. This timeout will be used when trying to connect to the LDAP server, and also when trying to query the server once connected. If not provided, a default timeout of 10 seconds will be used.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| timeout | Integer | required | The number of seconds to wait for an LDAP query or connections before labeling it a failure. If 0, will never timeout. |
auth_ldap, auth_active_dir
Yes
Define credentials used to perform the initial LDAP bind request for double-bind authentication. If not provided, single-bind authentication is performed.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| user | String | required | Defines a DN used during the initial LDAP bind request. The {{root}} variable will be automatically substituted by the root DIT (as provided in the parent auth_ldap or auth_active_dir directive) before attempting to bind to the LDAP server. | |
| password | String | required | The password used during the initial LDAP bind request. The password may be specified as plaintext or as an absolute path to the file storing the secret. If using a file path, Shiny Server will retain root privileges under the assumption that the file is only readable by the root user. |
auth_ldap, auth_active_dir
Yes
Define the template by which the username provided by the user should be converted to the username used to bind to the LDAP server. We currently only support storing all users in a single node of the directory.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| template | String | required | The template used in defining the DN of users in the LDAP database when trying to bind. The following variables will be automatically substituted before attempting to bind to the LDAP server: {{username}} will be replaced by the username provided on the login page; {{root}} will be replaced by the root DIT (as provided in the parent auth_ldap directive). If this setting is not provided, defaults will be used. For auth_active_dir systems, the the default is '{{username}}@example.org' (where 'example.org' is the domain inferred/provided in auth_active_dir). For other auth_ldap systems, the default will be 'uid={{username}},ou=People,{{root}}'. |
auth_ldap, auth_active_dir
Yes
By default, many commonly accepted Certificate Authorities (CAs) will be trusted when establishing secure ldap (ldaps://) connections. This parameter instructs Shiny Server to instead trust this CA certificate. Organizations that are using an internal CA to sign their SSL certificates or are using a self-signed SSL certificate on their LDAP server will need to provide the associated CA certificate in order for Shiny Server to trust the ldaps:// connection.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| certificate | String | multiple | The path to the CA certificate to be trusted in PEM format. |
auth_ldap, auth_active_dir
Yes
Define whether or not to check the Certificat Authority (CA) of the SSL certificate returned from the LDAP server. This must be true if using a self-signed SSL certificate. If not provided, this is set to 'true'. This should only be set to false if you know that your LDAP server uses an untrusted SSL certificate.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| value | Boolean | required | If true, will check the certificate against the default list of trusted CAs (or the list provided in the trusted_ca setting). If false, the returned SSL certificate will not be checked. |
auth_ldap, auth_active_dir
Yes
The filter to be used when querying the LDAP database to find the LDAP user object which contains the username. In Active Directory, the CN of the users are often not the username. In such instances, it is necessary to map the entered username to the user's DN. This will be done by querying in user_search_base for objects using this filter. If this field is left empty, it will be assumed that the name the user enters is the same as the associated LDAP user's CN, and can be used in the user's DN as instructed by user_bind_template. The following variables are available: {{username}} will be replaced by the username provided on the login page; {{root}} will be replaced by the root DIT (as provided in the parent auth_ldap directive); {{userBind}} will be replaced by the username after applying the user_bind_template. The default for this setting in auth_ldap is to leave this field empty; the default in auth_active_dir is 'userPrincipalName={{userBind}}'
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| filter | String | required | The filter to use to find the LDAP user object referenced by the given username (as entered by the user on the login page). |
auth_ldap, auth_active_dir
Yes
Set the subtree which will be the root of user searches. If this setting is omitted, the defaults of 'cn=Users' or 'ou=People' will be used for systems using auth_active_dir and auth_ldap, respectively. The given string will be followed by a comma and the root DIT to form the base of the search for users. If empty, the unaltered root DIT will be used. This setting will only be used if user_filter is set; otherwise, no queries for users will be executed.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| base | String | required | The part of the tree which stores users. |
auth_ldap, auth_active_dir
Yes
Set the subtree which will be the root of group searches. If this setting is omitted, the defaults of 'cn=Users' or 'ou=Groups' will be used for systems using auth_active_dir and auth_ldap, respectively. The given string will be followed by a comma and the root DIT to form the base of the search for groups. If empty, the unaltered root DIT will be used.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| base | String | required | The part of the tree which stores groups. |
auth_ldap, auth_active_dir
Yes
The LDAP query to use in determining group membership. The query should return all groups of which the given user is a member. Three variables are available for this query: '{{username}}'' will be replaced with the username entered at the login screen; '{{userDN}}' will be replaced with the user's full DN (using the user_bind_template to compute this); {{root}} will be replaced by the root DIT (as provided in the parent auth_ldap directive). For auth_active_dir, the default is 'member:1.2.840.113556.1.4.1941:={{userDN}}'. For auth_ldap, the default is 'uniqueMember={{username}}'.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| filter | String | required | The filter to use to determine group membership. |
auth_ldap, auth_active_dir
Yes
The attribute of a group which contains the group name.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| attribute | String | optional | The name of the attribute. Default is 'cn' for both auth_active_dir and auth_ldap | cn |
auth_ldap, auth_active_dir
Yes
DEPRECATED. This setting is deprecated and no longer enforced in Shiny Server. It is not permitted in configuration files.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| empty | String | required |
location
Yes
required_group, required_user, google_analytics_id, app_init_timeout, app_idle_timeout, app_session_timeout, simple_scheduler, utilization_scheduler, whitelist_headers
A directory containing custom templates to be used when generating pages in Shiny Server.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| dir | String | required | The directory containing HTML templates. |
When spawning a Shiny process for a user, the PAM profile specified here will be used. The default is to use the 'su' profile. You can customize this behavior by creating a new profile in '/etc/pam.d' and referencing it here.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| profile | String | required | The name of the profile in '/etc/pam.d' you want to use. |
The program supervisor under which Shiny processes should be run. This can be a command that modifies Shiny's environment or resources. The default is to have no supervisor (i.e. the empty string '').
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| command | String | required | The command which prefixes the call to start the R process which will run Shiny. |
The path to the R executable.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| path | String | required | The absolute path on disk to the R executable you wish to use. |
A directory for storing persisted application state. If Shiny Server is running without root privileges, then the run_as account must have read/write access to this directory. If no bookmark_state_dir directive is provided, /var/lib/shiny-server/bookmarks will be used.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| dir | String | required | The directory where bookmark data should be stored. |
Disable WebSockets on connections to the server. Some networks will not reliably support WebSockets, so this setting can be used to force Shiny Server to fall back to another protocol to communicate with the server. This is equivalent to adding 'websocket' to disable_protocols
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| val | Boolean | optional | Whether or not WebSockets should be disabled. | true |
If present, RRD logging will be disabled. Note that having RRD is a prerequisite for enabling the admin interface. While this option is present, no data will be logged to be viewed in the Admin interface in the future, either.
This directive has no parameters.
Top-level
Yes
Disable some of the SockJS protocols used to establish a connection between your users and your server. Some network configurations cause problems with particular protocols; this option allows you to disable those.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| names | String | multiple | The protocol(s) to disable. Available protocols are: 'websocket', 'xdr-streaming', 'xhr-streaming', 'iframe-eventsource', 'iframe-htmlfile', 'xdr-polling', 'xhr-polling', 'iframe-xhr-polling', 'jsonp-polling' |
Enable logging of metrics to a Graphite server.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| host | String | optional | The address of the Graphite server. Defaults to the local server. | 127.0.0.1 |
| port | Integer | optional | The port on the Graphite server to which we should send metrics. | 2003 |
Top-level
Yes
By default, log files from Shiny processes that exited successfully (exit status 0) will be deleted. This behavior can be overridden by setting this property to true in which case Shiny Server will not delete the log files from any Shiny process that it spawns. WARNING: This feature should only be enabled when combined with proper log rotation. Otherwise, thousands of log files could quickly accrue and cause problems for the file system on which they are stored.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not logs should be preserved. | false |
Top-level
Yes
Add a custom header to all HTTP responses coming from the server.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| key | String | required | The name of the header field. | |
| value | String | required | The value for the header. |
Top-level
Yes
By default, the log files for R processes are created and managed by the user running the server centrally (often root). In the typical scenario in which the logs are stored in a server-wide directory, this is desirable as only root user may have write access to such a directory. In other cases, such as using user_dirs on a system in which the users' home directories are on an NFS mount which uses root_squash, creating log files as root may be a problem. In those scenarios, this option can be set to true to have the log files created by the users running the associated processes.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not the log files should be managed by the owner of the process to which they belong. | false |
When a user's connection to the server is interrupted, Shiny Server will offer them a dialog that allows them to reconnect to their existing Shiny session for 15 seconds. This implies that the server will keep the Shiny session active on the server for an extra 15 seconds after a user disconnects in case they reconnect. After the 15 seconds, the user's session will be reaped and they will be notified and offered an opportunity to refresh the page. If this setting is true, the server will immediately reap the session of any user who is disconnected.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not to offer to automatically reconnect disconnected users. | true |
If this setting is true (the default), only generic error messages will be shown to the client (unless these were wrapped in safeError()).
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not to sanitize error messages on the client. | true |
Shiny Server Pro will spawn a process to track and collect historical metrics data. If we're able to drop root privileges, then we'll spawn this process as the user that we're running the server daemon as. If we need to retain root privileges, then we'd use the shiny user to spawn this process. This setting will override that behavior, forcing Shiny Server to retain root privileges and to spawn the metrics process as the given user. You must ensure that the specified user has write access to all files in /var/lib/shiny-server/monitor/ (or the custom value of SHINY_DATA_DIR) as well as the directory itself.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| user | String | required | The username to use when spawning the metrics process. |
Top-level
Yes
Adds the HTML attribute `autocomplete=
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| enabled | Boolean | optional | Whether or not to add the autocomplete="off" attribute. |
true |
Top-level
Yes
Sets the X-Frame-Options header on URLs served from Shiny applications, to prevent the app from being embedded in a browser frame or iframe. This can be used as a mitigation for clickjacking attacks. If no option is provided, the default behavior is allow.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| value | String | required | One of allow, deny, sameorigin, or allow-from (case insensitive). (allow removes the X-Frame-Options header.) |
|
| url | String | optional | If value is allow-from, the URL from which framing should be allowed. |
Restricts the set of groups that will be applied to a logged in user. Shiny Server Pro currently has a bug where a user being a member of too many groups will cause login to fail. This command can be used to narrow down large group lists to sizes Shiny Server Pro can handle.
| Parameter | Data type | Type | Description | Default |
|---|---|---|---|---|
| command | String | required | One of include, exclude, include_glob, exclude_glob, include_regex, exclude_regex. |
|
| pattern | String | multiple | The group name, glob pattern, or regex indicating the group(s) to include or exclude. |
Top-level
Yes