From f16f0fdb32db42a356cc1ee59a0b2d3e0480ff5c Mon Sep 17 00:00:00 2001 From: philipcheung Date: Mon, 3 Nov 2025 09:30:59 +0800 Subject: [PATCH] add nginx --- nginx copy.conf | 11 +++++++++++ nginx-backend-not-found.conf | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 nginx copy.conf create mode 100644 nginx-backend-not-found.conf diff --git a/nginx copy.conf b/nginx copy.conf new file mode 100644 index 0000000..ba4d9aa --- /dev/null +++ b/nginx copy.conf @@ -0,0 +1,11 @@ +server { + listen 80; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri /index.html =404; + } + + include /etc/nginx/extra-conf.d/*.conf; +} diff --git a/nginx-backend-not-found.conf b/nginx-backend-not-found.conf new file mode 100644 index 0000000..f6fea66 --- /dev/null +++ b/nginx-backend-not-found.conf @@ -0,0 +1,9 @@ +location /api { + return 404; +} +location /docs { + return 404; +} +location /redoc { + return 404; +}