Git Product home page Git Product logo

shinyserver's Introduction

Shiny Server

https://RhettRautsaw.app/

This repository contains the html code for my Digital Ocean Droplet welcome page which contains my Shiny applications and my RStudio Server. This repository also contains notes to remind myself how to run the damn thing.

Disclaimer

The code and asthetics of my server is based entirely on the work of Dr. Saskia A. Otto. Including her tutorials on how to setup the server:

Which she built off of the tutorial by Dean Attali:

Personal Notes

Important Server Locations

The shiny apps are located here:: /srv/shiny-server/

  • I prefer to just have my Shiny Apps listed in the hexagons on my welcome page, but you can have a shiny page html located here /srv/shiny-server/index.html for RhettRautsaw.app/shiny

The website html is managed by nginx.

  • The welcome page html is located here: /var/www/html/
  • Once updated, you will need to restart nginx: sudo service nginx restart

Shiny configuration file is located here: /etc/shiny-server/shiny-server.conf

How to change the Droplet/Hostname

  • Got to DigitalOcean.com and rename the Droplet
  • On the server edit /etc/hosts and /etc/hostname

How to change the custom URL:

  • Buy a URL somewhere and then do this
  • Go to your DigitalOcean.com and do this
  • Edit "server_name" in /etc/nginx/sites-enabled/default
    • Note that everything else is probably managed by Certbot
  • Verify nginx syntax sudo nginx -t and correct any errors
  • Reload nginx sudo systemctl reload nginx
  • Obtain an SSL Certificate with Certbot
    • sudo certbot --nginx -d example.com -d www.example.com

In case I need to add a app session timeout: https://stackoverflow.com/questions/33839543/shiny-server-session-time-out-doesnt-work

shinyserver's People

Contributors

rhettrautsaw avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.