Working log in/route guard
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
# This config is for the Nginx server INSIDE the frontend container
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user