From a041c82a4eb3f48b88c60d71ab0671ace9605685 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 9 Mar 2026 19:09:29 -0700 Subject: [PATCH] Add nginx try_files config for clean URL routing Enables /flowfi to serve flowfi.html without trailing slash 403. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + nginx.conf | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile index 2925e60..8cfcf2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,5 @@ RUN pnpm build FROM nginx:alpine COPY --from=builder /app/out /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..3fbd0ce --- /dev/null +++ b/nginx.conf @@ -0,0 +1,13 @@ +server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri.html $uri/ =404; + } + + error_page 404 /404.html; + error_page 500 502 503 504 /50x.html; +}