mirror of
https://github.com/omg-xtao/gc-tools.git
synced 2024-11-21 14:48:34 +00:00
add nginx-conf
This commit is contained in:
parent
5d4e3d834f
commit
aa094d665c
@ -9,4 +9,5 @@ FROM nginx:alpine
|
|||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
RUN rm -rf *
|
RUN rm -rf *
|
||||||
COPY --from=builder /app/build .
|
COPY --from=builder /app/build .
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
ENTRYPOINT ["nginx","-g","daemon off;"]
|
ENTRYPOINT ["nginx","-g","daemon off;"]
|
15
nginx.conf
Normal file
15
nginx.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user