Skip to content
Merged

Main #128

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down