refactor web-map to be SPA
This commit is contained in:
parent
de419aeae8
commit
a84c4a2f76
17 changed files with 329 additions and 267 deletions
|
|
@ -1,2 +1,5 @@
|
|||
FROM nginx
|
||||
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
COPY ./build/distributions /usr/share/nginx/html
|
||||
|
|
|
|||
25
modules/web-map/docker/nginx.conf
Normal file
25
modules/web-map/docker/nginx.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
http {
|
||||
# what times to include
|
||||
# include /etc/nginx/mime.types;
|
||||
# what is the default one
|
||||
#default_type application/octet-stream;
|
||||
|
||||
# Sets the path, format, and configuration for a buffered log write
|
||||
#log_format compression '$remote_addr - $remote_user [$time_local] '
|
||||
#'"$request" $status $upstream_addr '
|
||||
#'"$http_referer" "$http_user_agent"';
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to redirecting to index.html
|
||||
try_files $uri $uri/ $uri.html /index.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue