From fb5a3b8093a541db06fa74e1fc2d9ae5f9c3d678 Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Sat, 13 Jun 2026 20:47:57 +0200 Subject: [PATCH] Handle Dokploy domain prefixes in Nginx --- deploy/blog-locations.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/blog-locations.conf b/deploy/blog-locations.conf index e998d4e..c9f2509 100644 --- a/deploy/blog-locations.conf +++ b/deploy/blog-locations.conf @@ -8,6 +8,10 @@ location = /nginx-health { return 204; } +location ^~ /dist/ { + rewrite ^/dist/[^/]+/?(.*)$ /$1 last; +} + location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ { try_files $uri =404; expires 1y;