diff --git a/.gitignore b/.gitignore index 0e0326d..a847b38 100644 --- a/.gitignore +++ b/.gitignore @@ -142,3 +142,4 @@ chart/secrets.*.yaml !chart/values.prod.template.yaml !chart/values.prod.public.yaml +.bkup/ diff --git a/frontend/nginx.conf.bkup b/frontend/nginx.conf.bkup deleted file mode 100644 index 7fdce10..0000000 --- a/frontend/nginx.conf.bkup +++ /dev/null @@ -1,27 +0,0 @@ -server { - listen 80; - server_name _; - - location / { - root /usr/share/nginx/html; - index index.html; - try_files $uri $uri/ /index.html; - } - - # Serve favicon files - location /favicon/ { - alias /usr/share/nginx/html/dist/favicon/; - access_log off; - expires max; - } - - # Proxy API requests to the backend - location /api { - proxy_pass http://fusero-app-backend:14000; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - } -} \ No newline at end of file diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts deleted file mode 100644 index 11f02fe..0000000 --- a/frontend/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/src/plugins/Crypto.ts b/src/plugins/Crypto.ts deleted file mode 100644 index d4fdec7..0000000 --- a/src/plugins/Crypto.ts +++ /dev/null @@ -1,33 +0,0 @@ -// import fp from 'fastify-plugin'; -// import crypto from 'crypto'; -// import { FastifyInstance, FastifyPluginAsync } from 'fastify'; - -// const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY as string; // Ensure this is 32 bytes for AES-256 -// const IV_LENGTH = 16; // AES block size - -// const cryptoPlugin: FastifyPluginAsync = async (fastify: FastifyInstance) => { -// fastify.decorate('encrypt', (text: string): string => { -// const iv = crypto.randomBytes(IV_LENGTH); -// const cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); -// let encrypted = cipher.update(text); -// encrypted = Buffer.concat([encrypted, cipher.final()]); -// return iv.toString('hex') + ':' + encrypted.toString('hex'); -// }); - -// fastify.decorate('decrypt', (text: string): string => { -// const textParts = text.split(':'); -// const iv = Buffer.from(textParts.shift()!, 'hex'); -// const encryptedText = Buffer.from(textParts.join(':'), 'hex'); -// const decipher = crypto.createDecipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); -// let decrypted = decipher.update(encryptedText); -// decrypted = Buffer.concat([decrypted, decipher.final()]); -// return decrypted.toString(); -// }); -// }; - -// export default fp(cryptoPlugin, { -// name: 'cryptoPlugin', -// decorators: { -// fastify: ['encrypt', 'decrypt'], -// }, -// }); diff --git a/src/plugins/JWT.ts b/src/plugins/JWT.ts deleted file mode 100644 index a62e83c..0000000 --- a/src/plugins/JWT.ts +++ /dev/null @@ -1,20 +0,0 @@ -// import { FastifyPluginAsync } from 'fastify'; -// import fJwt, { FastifyJWTOptions } from '@fastify/jwt'; - -// const jwtPlugin: FastifyPluginAsync = async (fastify) => { -// await fastify.register(fJwt, { -// secret: process.env.JWT_SECRET || 'your-secret-here', -// }); -// }; - -// const authenticateDecorator: FastifyPluginAsync = async (fastify) => { -// fastify.decorate('authenticate', async (request, reply) => { -// try { -// await request.jwtVerify(); -// } catch (err) { -// reply.send(err); -// } -// }); -// }; - -// export { jwtPlugin, authenticateDecorator }; diff --git a/src/shared/exceptions/TooManyRequests.ts b/src/shared/exceptions/TooManyRequests.ts deleted file mode 100644 index 617467d..0000000 --- a/src/shared/exceptions/TooManyRequests.ts +++ /dev/null @@ -1,15 +0,0 @@ -// import { HttpStatusCode } from 'axios'; - -// class TooManyRequests extends Error { -// public httpErrorStatusCode = HttpStatusCode.TooManyRequests; -// constructor(msg: string, customErrorCode?: HttpStatusCode) { -// super(msg); - -// this.httpErrorStatusCode = this.httpErrorStatusCode ?? customErrorCode; - -// // Set the prototype explicitly. -// Object.setPrototypeOf(this, TooManyRequests.prototype); -// } -// } - -// export default TooManyRequests;