||4 months ago|
|.vscode||5 months ago|
|app||4 months ago|
|client||5 months ago|
|config||5 months ago|
|data/patches||2 years ago|
|docker||1 year ago|
|docs||5 months ago|
|lib||5 months ago|
|ssl||1 year ago|
|static||1 year ago|
|supervisord||4 months ago|
|.dockerignore||1 year ago|
|.env.default||5 months ago|
|.env.docker.default||1 year ago|
|.gitignore||9 months ago|
|.jshintrc||5 months ago|
|Dockerfile||1 year ago|
|LICENSE||2 years ago|
|NOTES.md||1 year ago|
|README.md||6 months ago|
|deploy||2 years ago|
|deploy-cybershell||9 months ago|
|docker-build||1 year ago|
|docker-clean||1 year ago|
|docker-compose.yml||1 year ago|
|docker-console||1 year ago|
|docker-proxy||1 year ago|
|dtp-media-engine.js||5 months ago|
|dtp-sites-cli.js||5 months ago|
|dtp-sites.code-workspace||2 years ago|
|dtp-sites.js||5 months ago|
|gulpfile.js||1 year ago|
|iconImport.js||1 year ago|
|package.json||5 months ago|
|push||2 years ago|
|release||2 years ago|
|restart-production||1 year ago|
|start-local||5 months ago|
|start-production||4 months ago|
|stop-production||4 months ago|
|thumbnail.png||1 year ago|
|update-deps||2 years ago|
|update-deps.js||5 months ago|
|update-master||1 year ago|
|yarn.lock||5 months ago|
DTP Sites is an open source blogging platform built on Node.js and the DTP ecosystem.
The only qualified operated system for hosting a DTP Sites suite is Ubuntu 20.04 LTS. It is acceptable to run it in a virtual machine for development and testing, but it should be run as close to bare metal as can be had for production environments.
Install Build Tools (for mediasoup support)
apt-get -y install build-essential python3-pip
The following commands must be exeucted on any host expected to run DTP Framework applications.
apt -y update && apt -y upgrade apt -y install linux-headers-generic linux-headers-virtual linux-image-virtual linux-virtual apt -y install build-essential ffmpeg supervisor
Install Data Tier Components
You will need MongoDB and MinIO installed and running before you can start DTP Sites web services.
sudo apt-get install redis
Install Node Version Manager (NVM) and Node.js
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Resolve Global Node Dependencies
Yarn, Gulp, and Forever are required to be installed globally. This should be done once per developer workstation and repeated when updates are required.
nvm install --lts npm install -g yarn gulp forever
Preparing a Fresh Install
Clone the DTP Sites Repository
cd ~/live git clone firstname.lastname@example.org:digital-telepresence/dtp-sites.git
Install Required Dependencies
cd ~/live/dtp-sites yarn
Generate SSL/TLS Certificate
cd ~/live/dtp-sites/ssl ./mkcert
On a new host or host image, copy
.env and edit it as necessary.
For password salt and service passwords, the
uuidgen tool may be useful to help generate hard-to-guess passwords for use in a development environment. Something more sophisticated than a UUID should be used in production.
Starting DTP Sites In Development Mode
- Make sure
NODE_ENVis set to
./start-localin a VS Code terminal, then rename that terminal to
- In a new VS Code terminal, run
gulpand rename that terminal
- Open https://localhost:3000 in your web browser.
You can now make changes to program source code, and the environment will automatically respond, build, pack, and re-load things as needed depending on what you did and what's open/running.
DTP Sites is a multi-tier web hosting engine built on:
Production Environment Information
The only qualified operated system for hosting a DTP Sites suite is Ubuntu 20.04 LTS. It is acceptable to run it in a virtual machine for development and testing, but it should be run as close to bare metal as possible in production environments.
It's impossible to give 100% generic advice here, but it all depends on how large your audience is and how much they use your website. Larger, more active audiences will require a different kind of production server deployment than smaller and less active audiences.
Generally, it's possible to stack all components on one host and operate a fast site for small-to-medium audiences. The size of the host may vary, but it's possible to keep the system stacked and handle quite a large audience.
Beyond a point, you'll need to start isolating services away from each other. Storage will want it's own system(s), MongoDB will want it's own systems (plural), Redis will want it's own system(s), and the Node.js components can each start to want their own system(s).
Once you start scaling horizontally, the host requirements change a little. You will need two networks and network interfaces per host. The production network to handle public requests; and a management network for handling IPC and data-sharing among the hosts themselves.
Some useful links for learning more about hosting MinIO:
Redis simply has many different documents to describe it's many different features and their requirements. I'd like to give you a summary page link, but it doesn't exist. This is that summary page. These are those links.