pref: update nginx config
This commit is contained in:
parent
898297df9f
commit
75b1821d86
@ -13,7 +13,7 @@ RUN pnpm build
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
|
||||
COPY --from=build-stage /app/nginx/conf.d /etc/nginx/conf.d
|
||||
COPY --from=build-stage /app/dist /usr/local/nginx/html/
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html/
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
@ -13,7 +13,7 @@ server {
|
||||
gzip_vary on;
|
||||
|
||||
location / {
|
||||
root /usr/local/nginx/html/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
root /usr/local/share/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user