From a6f2865294fb93732f842296308d6e7b89a30174 Mon Sep 17 00:00:00 2001 From: Graulitard <127958528+Graulitard@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:25:53 +0200 Subject: [PATCH] Fixing deployment issue (#417) * Fetching data from Space-Track, fixing some bugs, adding cron tasks for updating database with tool functions * Orbital chart done, using backend data without refetching from the backend server * Clean code of orbitalDataGraph, restore strapi files, adding cronTask to the 3rd of each month. * Adding package*.json files * ESLint fixed * Updating strapi env * Reseting frontend/package.json * Prettier checked * Updating for ESlint check * Adding backend env file --- backend/.env | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 backend/.env diff --git a/backend/.env b/backend/.env new file mode 100644 index 0000000..83d5b8d --- /dev/null +++ b/backend/.env @@ -0,0 +1,14 @@ +# All these should be set in the GitHub Repository actions and secrets at https://github.com/NTNU-SmallSat-Lab/outreach-website/settings/variables/actions +# Any changes done here will not be reflected in the production environment +# All variables named toBeGenerated should be generated with the command `openssl rand -base64 32` +HOST=0.0.0.0 +PORT=1337 +STRAPI_URL="https://hypso.space/strapi/" +APP_KEYS="LlikgA/Dce0U0qy3b3jp5FwdipVsgLrUlbC4EiJczsg=,rweQcOIfQvkiQAcOPjRujpitslVAEesx4fkT09qMhNY=" +API_TOKEN_SALT="Nh97EoxmLk6zqzG5HXn/9NvpPHeTNs8Sz2XHIXGry1A=" +ADMIN_JWT_SECRET="jqFr2Ocz4j7xqK/wJMdfq+QSIlEnIuNchX3l0PD9bqk=" +TRANSFER_TOKEN_SALT="3JKja5Orq7jWr+HOfF/VKLgL9o2rvgX14NnOfskzo/k=" +JWT_SECRET="VHe12SBqQRQcnIAhUMbMfCbBLj8EvIkmcGRO7FZKMPM=" + +DATABASE_CLIENT=sqlite +DATABASE_FILENAME=dbLocation.sqlite # in dev, will use backend root dir, in prod, will be from server os root dir so should be /var/data/strapi.db or similar