Skip to content

Commit

Permalink
Move config to jsonnet code and regenerate
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Dec 7, 2023
1 parent c6652ad commit eb6a40c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/monitoring-plugin/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data:
add_header Pragma 'no-cache';
add_header Expires '0';
}
# Prevent caching for plugin-entry.js
location = /plugin-entry.js {
add_header Cache-Control 'no-cache, no-store, must-revalidate, proxy-revalidate, max-age=0';
Expand Down
14 changes: 14 additions & 0 deletions jsonnet/components/monitoring-plugin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ function(params)
ssl_certificate %(tlsPath)s/tls.crt;
ssl_certificate_key %(tlsPath)s/tls.key;
root /usr/share/nginx/html;
# Prevent caching for plugin-manifest.json
location = /plugin-manifest.json {
add_header Cache-Control 'no-cache, no-store, must-revalidate, proxy-revalidate, max-age=0';
add_header Pragma 'no-cache';
add_header Expires '0';
}
# Prevent caching for plugin-entry.js
location = /plugin-entry.js {
add_header Cache-Control 'no-cache, no-store, must-revalidate, proxy-revalidate, max-age=0';
add_header Pragma 'no-cache';
add_header Expires '0';
}
}
}
||| % { tlsPath: tlsMountPath, nginxPort: nginxPort };
Expand Down

0 comments on commit eb6a40c

Please sign in to comment.