A simple web server that serves everything Talentmaker, including the Site, API, and Rendertron instance. Implements dynamic rendering by pre-rendering content with Rendertron and the Rendertron middleware to serve pre-rendered content to crawlers to improve SEO.
Note to self: SSL certificates should be in the filesystem
Link nginx config
sudo ln -vf nginx.conf /etc/nginx/nginx.conf
Run nginx
sudo nginx -s reload
Run Docker services
docker-compose up
Alternatively, with Systemd (oh no)
Link service file
Note to self: values are hardcoded, may need to be changed
sudo ln -vf talentmaker.service /etc/systemd/system/talentmaker.service
Enable and start
sudo systemctl enable talentmaker --now
The CRON job runs at 3am EST every day and rebuilds the app if there are changes to the head of the remote repos
0 3 * * * /home/ubuntu/Documents/web-server/manager/cron.bash
Enable logrotate for log management
sudo ln -vf logrotate.conf /etc/logrotate.d/talentmaker