diff --git a/server-nginx-default b/server-nginx-default index 28fe6d3..348e776 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -113,19 +113,15 @@ server { # # include snippets/snakeoil.conf; - root /var/www/html; + root /home/admin/frontend-customer/dist; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name ro-being.com; # managed by Certbot - # Main application proxy + # Main application static files location / { - proxy_pass http://localhost:5173; - 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; + try_files $uri $uri/ /index.html; } # API endpoints