diff --git a/.github/workflows/ftp.yml b/.github/workflows/ftp.yml index 653f6fb9..3b123cfe 100644 --- a/.github/workflows/ftp.yml +++ b/.github/workflows/ftp.yml @@ -15,8 +15,12 @@ jobs: node-version: 20 - name: Install dependencies run: npm i + - name: preBuild + run: npm run prebuild - name: Build run: npm run build:prod + - name: postBuild + run: npm run postbuild - name: copy views to be deployed run: | cp -R views/ dist/ diff --git a/src/app.ts b/src/app.ts index 07593045..20bc2df6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -53,6 +53,7 @@ app.use((req, res, next) => { // limit body for specific http methods next(); }); +app.set('trust proxy',true); // routes app.get(['/', '/login'], (req, res) => {