diff --git a/.env b/.env
deleted file mode 100644
index 75a70cb..0000000
--- a/.env
+++ /dev/null
@@ -1,6 +0,0 @@
-DB_HOST=172.10.1.4
-DB_USER=prox
-DB_PASSWORD=2104
-DB_NAME=prox
-PORT=3006
-VITE_API_URL=/api
\ No newline at end of file
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
new file mode 100644
index 0000000..8809454
--- /dev/null
+++ b/ecosystem.config.cjs
@@ -0,0 +1,14 @@
+module.exports = {
+ apps: [{
+ name: 'proxmox-dashboard',
+ script: 'server/index.js',
+ env: {
+ NODE_ENV: 'production',
+ PORT: '3006'
+ },
+ instances: 1,
+ autorestart: true,
+ watch: false,
+ max_memory_restart: '1G'
+ }]
+}
\ No newline at end of file
diff --git a/img/proxmox-removebg-preview.svg b/img/proxmox-removebg-preview.svg
new file mode 100644
index 0000000..b232249
--- /dev/null
+++ b/img/proxmox-removebg-preview.svg
@@ -0,0 +1,215 @@
+
+
+
diff --git a/index.html b/index.html
index 0228893..3d8776c 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
+
Proxmox Dashboard
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..53e52c4
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,46 @@
+server {
+ listen 159 ssl;
+ server_name gabve.ddns.net;
+
+ # SSL Configuration
+ ssl_certificate /etc/nginx/ssl/gabve.ddns.net_2048/fullchain.cer;
+ ssl_certificate_key /etc/nginx/ssl/gabve.ddns.net_2048/private.key;
+
+ # SSL Security Settings
+ ssl_protocols TLSv1.2 TLSv1.3;
+ ssl_prefer_server_ciphers on;
+ ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
+
+ root /var/www/proxmoxchoose/proxmox_choose_page/dist;
+ index index.html;
+
+ # Main location block
+ location / {
+ try_files $uri $uri/ /index.html;
+
+ # Security headers
+ add_header X-Frame-Options "SAMEORIGIN";
+ add_header X-XSS-Protection "1; mode=block";
+ add_header X-Content-Type-Options "nosniff";
+ }
+
+ # API proxy
+ location /api/ {
+ proxy_pass http://localhost:3006;
+ 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;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+
+ # Let's Encrypt verification
+ location /.well-known/acme-challenge {
+ proxy_set_header Host $host;
+ proxy_set_header X-Real_IP $remote_addr;
+ proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
+ proxy_pass http://127.0.0.1:9180;
+ }
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index 4092a74..458cdc1 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "concurrently \"vite\" \"node server/index.js\"",
- "build": "vite build",
+ "build": "tsc && vite build",
"lint": "eslint .",
"preview": "vite preview",
"server": "node server/index.js",
diff --git a/start.sh b/start.sh
new file mode 100644
index 0000000..269cc52
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Check if screen is installed
+if ! command -v screen &> /dev/null; then
+ echo "Screen is not installed. Please install it first:"
+ echo "sudo apt-get update && sudo apt-get install screen"
+ exit 1
+fi
+
+# Kill existing screens if they exist
+screen -X -S proxmox-api quit > /dev/null 2>&1
+screen -X -S proxmox-vite quit > /dev/null 2>&1
+
+# Start the Node.js API server
+echo "Starting API server..."
+screen -dmS proxmox-api bash -c 'cd /var/www/proxmoxchoose/proxmox_choose_page && npm run server'
+
+# Wait a moment to ensure the API server is up
+sleep 2
+
+# Start the Vite development server
+echo "Starting Vite server..."
+screen -dmS proxmox-vite bash -c 'cd /var/www/proxmoxchoose/proxmox_choose_page && npm run dev'
+
+# Display running screens
+echo "Checking running screens..."
+screen -ls
+
+echo "Servers started successfully!"
+echo "To attach to the screens:"
+echo " API server: screen -r proxmox-api"
+echo " Vite server: screen -r proxmox-vite"
\ No newline at end of file