deadbaed / epi.today

what's on the calendar today at epitech?

Home Page:https://epi.today

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

epi.today

what's on the calendar today at epitech?

See it live on epi.today!

Licensed under the MIT License.

maintenance

A maintenance page can be found on the repo maintenance.html which is a file to be rendered when the application is not available.

deployment

docker

The application can be found on the docker hub.

In production, that image is used in a container along side nginx for reverse proxy and let's encrypt for the ssl certificates. More information on nginx-proxy/docker-letsencrypt-nginx-proxy-companion.

nginx

A nginx configuration file example can be found on the repo nginx.conf, with a reverse proxy to the application and a maintenance page to $document_root/epi.today.maintenance.html. On most systems $document_root is located at /usr/share/nginx/html/.

To activate the maintenance mode, simply copy the maintenance file to /usr/share/nginx/epi.today.maintenance.html. Remove the file when you are done with the maintenance.

automatic restart

It's recommended to use a daemon to keep the server alive. For epi.today, the daemon pm2 is used. After compiling the TypeScript code, run pm2 start build/app.js --name=epi.today to launch the application with pm2.

To start the application with pm2 at system startup, run pm2 startup to get more information.

You can find more information on pm2 in this DigitalOcean tutorial.

https

You can find information on how to do that with let's encrypt on this DigitalOcean tutorial.

environnement file

This project requires the use of a .env file to store application settings. Please take a look at file src/env.ts to see what is required inside the .env file.

About

what's on the calendar today at epitech?

https://epi.today

License:MIT License


Languages

Language:TypeScript 62.4%Language:Pug 27.2%Language:JavaScript 3.3%Language:HTML 2.9%Language:Dockerfile 2.3%Language:CSS 1.9%