Gateway for static assets from Toonix World (mostly known as Mundo Toonix).
-
Node.js - Version 20.x
-
PNPM - Version 8.x
-
Environment variables
Variable Type Description Default Required Example CDN_PATH
String Path to the CDN None Yes https://cdn.toonix.com
HTTP_SERVER_ADDRESS
String Address to HTTP server None Yes https://toonix.com
HTTPS_CA_FILEPATH
String Path to the SSL CA file None Yes, when the environment variable SHOULD_USE_HTTPS
is set totrue
<Path to SSL CA>
HTTPS_CERT_FILEPATH
String Path to the SSL certificate file None Yes, when the environment variable SHOULD_USE_HTTPS
is set totrue
<Path to SSL certificate>
HTTPS_KEY_FILEPATH
String Path to the SSL key file None Yes, when the environment variable SHOULD_USE_HTTPS
is set totrue
<Path to SSL key>
PORT
Number Port to run the server 80 No 3000
SHOULD_USE_HTTPS
Boolean Use HTTPS protocol None No true
For running the application with Node.js, you will need to either clone the repository or download the zip file from the releases page.
- Clone the repository.
- Install the dependencies with
pnpm install
. - Run the application with
pnpm run dev
.
- Download the zip file from the releases page.
- Extract the zip file.
- Install the dependencies with
pnpm install --prod
. - Run the application with
pnpm start
.