Guest User

Untitled

a guest
Nov 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # sudo /opt/shiny-server/bin/sspasswd /etc/shiny-server/myproject/passwd admin
  2.  
  3. # Instruct Shiny Server to run applications as the user "shiny"
  4. run_as shiny;
  5.  
  6. # Specify the authentication method to be used.
  7. # Initially, a flat-file database stored at the path below.
  8. auth_passwd_file /etc/shiny-server/nashboard/passwd;
  9.  
  10. # Define a server that listens on port 3838
  11. server {
  12. listen 3838;
  13.  
  14. # Define a location at the base URL
  15. location /nashboard {
  16.  
  17. # Only up tp 20 connections per Shiny process and at most 3 Shiny processes
  18. # per application. Proactively spawn a new process when our processes reach
  19. # 90% capacity.
  20. utilization_scheduler 20 .9 3;
  21.  
  22. # Host the directory of Shiny Apps stored in this directory
  23. site_dir /srv/shiny-server/nashboard;
  24.  
  25. # Log all Shiny output to files in this directory
  26. log_dir /var/log/shiny-server;
  27.  
  28. # When a user visits the base URL rather than a particular application,
  29. # an index of the applications available in this directory will be shown.
  30. directory_index on;
  31. app_init_timeout 250 ;
  32. }
  33. }
  34.  
  35. # Provide the admin interface on port 4151
  36. admin 4151 {
  37.  
  38. # Restrict the admin interface to the usernames listed here. Currently
  39. # just one user named "admin"
  40. required_user admin;
  41. }
  42. ~
  43. ~
  44. ~
Add Comment
Please, Sign In to add comment