feat: add nginx config

This commit is contained in:
thehrz 2023-08-05 11:10:51 +08:00
parent 85c3d52a5b
commit 9f95862ab9
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
2 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,7 @@ RUN pnpm build
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/nginx /etc/nginx/
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80

10
nginx/root.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80;
listen [::]:80;
server_name test.thehrz.net;
location / {
root /usr/local/nginx/html/;
try_files $uri $uri/ /index.html;
}
}