Demo - Click ALT+R a few times to enter the hidden registration page.
# clone the repo
$ git clone https://github.com/Scharkee/slim-video-host.git
# instal dependencies and trigger setup (you must have an interactive shell)
$ yarn # or npm install
# perform setup (you must have an interactive shell)
$ yarn setup # or npm run setup
# run the system in devmode
$ yarn dev # or npm run dev
# ...
# build the client
$ yarn build # or npm run build
# run the system in production mode
$ yarn start # or npm run start
yarn codes
that upgrade other users to admins,//hostname.domain/regg
)config.json file must be in the root directory with the following contents:
The config generator gets automatically launched after the initial installation. Be sure to fill everything in correctly! It can be rerun with
yarn setup
storagePath
- video storage path, must also be served as static content, relative to the root dirhost
- set up the domain you want your website to be accessible through. HTTP/HTTPS will be automatically added according to the selfHosted
setting.spaceLimit
- the total amount of space you are willing to dedicate for the website. It will not allow any more registrations when the amount of reserved user space exceedsproductionLogging
- either "all", "error" or "none" - sets production-time logging severityport
- custom port for when auto TLS generation is disabled.selfHosted
- sets mode of operation:
tls
- Let's Encrypt optionsmail
- username
and password
- gmail account credentials, used for password resetsdbPath
- database path, relative to root dir. No need to change the default value.infiniteSessions
- whether user sessions should persist forever ar have a 24h lifespan.yarn setup
yarn dev
runs the server in devmodeyarn build
builds the server for productionyarn start
starts the built serveryarn setup
or yarn config
- starts the config generation sequence. Runs automatically after yarn install.yarn codes
opens the code manipulation console interface (upgrade and registration codes: space upgrades, admin status codes)yarn care
or yarn maintenance
- opens the maintenance console interface. Used for manually runnign tasks that check the integrity and health of the platform, as well as other operations, such as a complete wipe. Config.json must be present in order for these commands to work.yarn setup
).Google requires "Less secure app access" to be enabled for you to be able to use a basic login (email,password) in order to send out password reset tokens. You can enable it by going to your Google account settings, and by enabling "Less secure app access".
You can also use OAuth, but that requires additional setup within Google's Developer console, and some manual reconfiguration in the transport setup. More information can be found in the nodemailer docs.
Submit bugs and requests through the project's issue tracker.
Contributions are welcome! Submit a merge request to my GitLab.
On launch: