diff --git a/build.sbt b/build.sbt index d39346d..bf535c6 100644 --- a/build.sbt +++ b/build.sbt @@ -34,6 +34,7 @@ lazy val kafkamate = project env("KAFKAMATE_ENV", "prod") env("KM8_BE_HOST", "http://localhost:61234") + env("ROOT_FS", "/usr/share") expose(8080, 61234) runRaw( diff --git a/build/nginx/nginx.conf b/build/nginx/nginx.conf index 1b3bf15..f24b0c1 100644 --- a/build/nginx/nginx.conf +++ b/build/nginx/nginx.conf @@ -6,7 +6,7 @@ http { include mime.types; sendfile on; server { - root /usr/share/nginx/html/; + root ${ROOT_FS}/nginx/html/; index index.html; server_name localhost; listen 8080; diff --git a/build/start.sh b/build/start.sh index b0d1bc0..533d1b6 100755 --- a/build/start.sh +++ b/build/start.sh @@ -3,7 +3,7 @@ set -m # Set FE configuration -echo 'window.KM8Config = { BE_HOST: "'${KM8_BE_HOST}'" };' > /usr/share/nginx/html/config.js +echo 'window.KM8Config = { BE_HOST: "'${KM8_BE_HOST}'" };' > "${ROOT_FS}/nginx/html/config.js" # Start nginx for site service nginx start