-
Notifications
You must be signed in to change notification settings - Fork 34
Installation (Auto)
Moonlight 4.0 comes with a auto installer that automatically installs all npm and apt packages needed for Moonlight 4.0. This is a one-click solution we've made for people who want to self host but don't quite know how to use servers. The installation script is made and optimized for Ubuntu 21.0+. The script may or may not work on other distributions and versions of Linux.
When running the script, you will be asked 3 options. Normal Install, Advanced Install, Update.
All preset settings, recommended for inexperienced Linux users and one click install
- Installs NVM, Node.js, caddy, pm2, and git
- Clones the repo into the users home directory
- Installs npm dependencies
- Starts the pm2 server
- Sets up a cron job to git pull and update the repo every 6 hours
Allows the user to choose a custom cron frequency, and custom install directory. Recommended for advanced Linux users.
- Installs NVM, Node.js, caddy, pm2, and git
- Installs npm dependencies
- Starts the pm2 server
- Allows the user to choose the install directory
- Allows the user to choose to turn setup the cron to auto update
- Allows the user to change the frequency of the cron
- Runs git pull and updates the repo if the install directory is in the home directory
By default, Moonlight runs on port 8080
but can be changed in the 'index.js' file. Please remember you still have to add the Caddy config in (by default on Ubuntu), /etc/caddy/
. If you need assistance on how to refer how to do this please refer to our docs.