mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 22:34:23 +01:00
Fix nginx for other routes
This commit is contained in:
committed by
benthecarman
parent
954be2eaea
commit
efd17e53be
@@ -38,6 +38,9 @@ FROM nginx:alpine
|
||||
# Copy the static assets from the builder stage to the Nginx default static serve directory
|
||||
COPY --from=builder /app/dist/public /usr/share/nginx/html
|
||||
|
||||
# Copy the custom Nginx configuration file into the container
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose the default Nginx port
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
9
default.conf
Normal file
9
default.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user