diff --git a/modules/web-map/docker/Dockerfile b/modules/web-map/docker/Dockerfile index c62fa29..1764c56 100644 --- a/modules/web-map/docker/Dockerfile +++ b/modules/web-map/docker/Dockerfile @@ -2,6 +2,8 @@ FROM nginx +EXPOSE 80 + COPY ./docker/nginx.conf /etc/nginx/nginx.conf COPY ./build/distributions /usr/share/nginx/html diff --git a/modules/web-map/docker/nginx.conf b/modules/web-map/docker/nginx.conf index 1dfcfd9..6d57bca 100644 --- a/modules/web-map/docker/nginx.conf +++ b/modules/web-map/docker/nginx.conf @@ -1,10 +1,8 @@ events {} http { - # what times to include - # include /etc/nginx/mime.types; - # what is the default one - #default_type application/octet-stream; + include mime.types; + 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] ' @@ -22,6 +20,8 @@ http { # 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; + + include mime.types; } } }