nginx update
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 18s

This commit is contained in:
2026-03-17 22:15:44 +01:00
parent 45404157b3
commit 15c37f204c
5 changed files with 12992 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ jobs:
- name: Copy files - name: Copy files
run: | run: |
scp docker-compose.yml deploy@${{ secrets.DEPLOY_HOST}}:/var/www/app/ scp docker-compose.yml deploy@${{ secrets.DEPLOY_HOST}}:/var/www/app/
scp nginx.conf deploy@${{ secrets.DEPLOY_HOST }}:/var/www/app/ scp nginx.conf deploy@${{ secrets.DEPLOY_HOST }}:/var/www/app/nginx.conf
- name: Deploy - name: Deploy
run: | run: |

View File

@@ -9,6 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"cors": "^2.8.6",
"dotenv": "^17.3.1", "dotenv": "^17.3.1",
"express": "^5.2.1", "express": "^5.2.1",
"mongoose": "^9.3.0", "mongoose": "^9.3.0",
@@ -245,6 +246,22 @@
"node": ">=6.6.0" "node": ">=6.6.0"
} }
}, },
"node_modules/cors": {
"version": "2.8.6",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
"integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
"dependencies": {
"object-assign": "^4",
"vary": "^1"
},
"engines": {
"node": ">= 0.10"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/debug": { "node_modules/debug": {
"version": "4.4.3", "version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -908,6 +925,14 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-inspect": { "node_modules/object-inspect": {
"version": "1.13.4", "version": "1.13.4",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",

View File

@@ -10,6 +10,7 @@
"dev": "nodemon src/index.js" "dev": "nodemon src/index.js"
}, },
"dependencies": { "dependencies": {
"cors": "^2.8.6",
"dotenv": "^17.3.1", "dotenv": "^17.3.1",
"express": "^5.2.1", "express": "^5.2.1",
"mongoose": "^9.3.0", "mongoose": "^9.3.0",

View File

@@ -1,11 +1,17 @@
const express = require("express"); const express = require("express");
const cors = require('cors');
require('dotenv').config(); require('dotenv').config();
const app = express(); const app = express();
const connectDB = require("./db"); const connectDB = require("./db");
// connect database // connect database
connectDB(); // connectDB();
app.use(cors({
origin: 'http://localhost:3000',
credentials: true, // if using cookies/auth
}));
app.get("/api/test", (req, res) => { app.get("/api/test", (req, res) => {
console.log("Hey"); console.log("Hey");

12958
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff