diff --git a/Dockerfile b/Dockerfile
index cf535970f02e0047f7a70b1b2e8db98baa700993..dcf09d65535a6e55c7e45afa6554fa8062b8081d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,5 +9,6 @@ RUN npm run build
 # Step 2: Setup the server with Nginx
 FROM nginx:stable-alpine as production-stage
 COPY --from=build-stage /app/dist /usr/share/nginx/html
+COPY web/nginx.conf /etc/nginx/nginx.conf
 EXPOSE 5173
 CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
diff --git a/web/nginx.conf b/web/nginx.conf
index aba6eb2358d99a4d82bace63ee340185558c5ec2..bcefea1efb03bae8cdd6e626a6cec92217dabce8 100644
--- a/web/nginx.conf
+++ b/web/nginx.conf
@@ -1,40 +1,22 @@
-# Frontend server configuration
-server {
-    listen 443 ssl;
-    server_name sparesti.org;  # Main domain for the frontend
+worker_processes  auto;
 
-    ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
-    ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
+error_log  /var/log/nginx/error.log notice;
+pid        /var/run/nginx.pid;
 
-    location / {
-        proxy_pass http://vue-frontend:80;  # Adjust the port and container name as necessary
-        proxy_set_header Host $host;
-        proxy_set_header X-Real-IP $remote_addr;
-        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-        proxy_set_header X-Forwarded-Proto $scheme;
-    }
+events {
+    worker_connections  1024;
 }
 
-# API server configuration
-server {
-    listen 443 ssl;
-    server_name api.sparesti.org;  # API subdomain
+http {
+    include /etc/nginx/mime.types;
 
-    ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
-    ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
+    server {
+        listen 5173;
+        server_name localhost;
 
-    location / {
-        proxy_pass http://spring-backend:8080;  # Adjust the port and container name as necessary
-        proxy_set_header Host $host;
-        proxy_set_header X-Real-IP $remote_addr;
-        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-        proxy_set_header X-Forwarded-Proto $scheme;
+        location / {
+            root /usr/share/nginx/html;
+            try_files $uri $uri/ /index.html;
+        }
     }
-}
-
-# HTTP to HTTPS redirection for main domain and subdomain
-server {
-    listen 80;
-    server_name sparesti.org api.sparesti.org;
-    return 301 https://$host$request_uri;
 }
\ No newline at end of file