Skip to content

talentmaker/web-server

Repository files navigation

Web server

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.

Running

NGINX

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

Docker

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

CRON Job

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

About

Web server for Talentmaker (www.talentmaker.ca) which hosts everything Talentmaker using NGINX, Go Fiber, and Rendertron, using Docker Compose.

Resources

License

Stars

Watchers

Forks

Contributors