Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit d998412

Browse files
committed
Add static nginx fragment for config.js routing
Add config-js.conf as a static nginx configuration fragment to handle routing for the runtime-generated config.js file. This ensures the dynamically created config.js in /tmp/config/ is properly served via nginx's alias directive without requiring file system writes to the read-only application root. Signed-off-by: Shiv Verma <shverma@redhat.com>
1 parent 2a74baf commit d998412

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ui/image/config-js.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# static nginx fragment file
2+
location = /config.js {
3+
alias /tmp/config/config.js;
4+
default_type application/javascript;
5+
add_header Cache-Control "no-cache, no-store, must-revalidate";
6+
}

0 commit comments

Comments
 (0)