cleanup
This commit is contained in:
parent
77f8e1554c
commit
f2ff6a2aa2
1
.gitignore
vendored
1
.gitignore
vendored
@ -142,3 +142,4 @@ chart/secrets.*.yaml
|
|||||||
!chart/values.prod.template.yaml
|
!chart/values.prod.template.yaml
|
||||||
!chart/values.prod.public.yaml
|
!chart/values.prod.public.yaml
|
||||||
|
|
||||||
|
.bkup/
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
1
frontend/src/vite-env.d.ts
vendored
1
frontend/src/vite-env.d.ts
vendored
@ -1 +0,0 @@
|
|||||||
/// <reference types="vite/client" />
|
|
@ -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'],
|
|
||||||
// },
|
|
||||||
// });
|
|
@ -1,20 +0,0 @@
|
|||||||
// import { FastifyPluginAsync } from 'fastify';
|
|
||||||
// import fJwt, { FastifyJWTOptions } from '@fastify/jwt';
|
|
||||||
|
|
||||||
// const jwtPlugin: FastifyPluginAsync<FastifyJWTOptions> = 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 };
|
|
@ -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;
|
|
Loading…
Reference in New Issue
Block a user