diff --git a/src/js/configs.js b/src/js/configs.js index 2b47ee46..7b45efb5 100644 --- a/src/js/configs.js +++ b/src/js/configs.js @@ -112,7 +112,6 @@ module.exports = { tls13: '8.0.16', }, nginx: { - checked: true, highlighter: 'nginx', latestVersion: '1.27.3', eolBefore: '1.26.0', diff --git a/src/js/index.js b/src/js/index.js index 109f64bb..fe354f70 100755 --- a/src/js/index.js +++ b/src/js/index.js @@ -41,6 +41,14 @@ templateContext.keys().forEach(key => { const render = async () => { + + // initial introduction + if (document.getElementById('form-generator').server.value === '') { + document.getElementById('output-config').innerHTML = ''; + document.getElementById('copy').classList.toggle('d-none', true); + return; + } + const _state = await state(); // enable and disable the appropriate fields diff --git a/src/templates/index.ejs b/src/templates/index.ejs index 6cd9b214..202de4cd 100755 --- a/src/templates/index.ejs +++ b/src/templates/index.ejs @@ -38,7 +38,7 @@ if (config[1].name) { %>
Select an application server in Server Software (above) to generate a sample TLS configuration.
+When using sample TLS configurations, replace example.com with your server name (e.g. hostname) and replace /path/to/... with actual paths to your local files.
+