Files
eamco_office_frontend/nginx/default.conf

16 lines
485 B
Plaintext

# This config is for the Nginx server INSIDE the frontend container
server {
listen 80;
# The location of the static files built by Vue
root /usr/share/nginx/html;
index index.html;
# This is the magic for Single-Page Applications (SPAs)
# It makes sure that if you refresh the page on a route like /customers/123,
# Nginx serves index.html instead of looking for a file named '123'.
location / {
try_files $uri $uri/ /index.html;
}
}