From 32b4bbffe2be2d02170af6b216e9b51fbfe53dee Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sat, 8 Oct 2022 16:05:44 +0200 Subject: [PATCH] maybe fix webmap nginx css... --- modules/web-map/docker/Dockerfile | 2 ++ modules/web-map/docker/nginx.conf | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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; } } }