Skip to content

Commit

Permalink
fix: add support for rootfs nginx overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasile Groza committed Feb 27, 2024
1 parent a6c2284 commit b518356
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion build/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion build/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b518356

Please sign in to comment.