nginx things
This commit is contained in:
@@ -8,3 +8,4 @@ RUN npm run build
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder build /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
16
nginx.conf
16
nginx.conf
@@ -1,13 +1,9 @@
|
||||
events { worker_connections 1024; }
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user