diff --git a/frontend/index.html b/frontend/index.html
index f229d41..f6cea32 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -48,6 +48,7 @@
document.addEventListener('DOMContentLoaded', () => window.refreshTheme())
// Template variable from Golang process
+ const maxSecretExpire = {{ .MaxSecretExpiry }}
const version = "{{ .Version }}"
window.OTSCustomize = JSON.parse('{{ .Customize.ToJSON }}')
diff --git a/main.go b/main.go
index e4e9dbc..7e2b931 100644
--- a/main.go
+++ b/main.go
@@ -182,10 +182,12 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
if err := indexTpl.Execute(w, struct {
Customize customize
InlineContentNonce string
+ MaxSecretExpiry int64
Version string
}{
Customize: cust,
InlineContentNonce: inlineContentNonceStr,
+ MaxSecretExpiry: cfg.SecretExpiry,
Version: version,
}); err != nil {
http.Error(w, errors.Wrap(err, "executing template").Error(), http.StatusInternalServerError)