feat: add nginx config
This commit is contained in:
parent
85c3d52a5b
commit
9f95862ab9
@ -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
10
nginx/root.conf
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user