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 d1c2e7a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 1 addition & 2 deletions assets/monitoring-plugin/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ 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';
add_header Pragma 'no-cache';
add_header Expires '0';
}
}
}
kind: ConfigMap
metadata:
Expand Down
15 changes: 14 additions & 1 deletion jsonnet/components/monitoring-plugin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +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 d1c2e7a

Please sign in to comment.