@@ -284,20 +366,20 @@ THE SOFTWARE.
};
export default {
- name: 'DomainHTTPS', // Component name
- display: 'common.https', // Display name for tab (i18n key)
- key: 'https', // Key for data in parent
- delegated: delegatedFromDefaults(defaults), // Data the parent will present here
+ name: 'DomainHTTPS', // Component name
+ display: 'common.https', // Display name for tab (i18n key)
+ key: 'https', // Key for data in parent
+ delegated: delegatedFromDefaults(defaults), // Data the parent will present here
components: {
PrettyCheck,
PrettyRadio,
ExternalLink,
},
props: {
- data: Object, // Data delegated back to us from parent
+ data: Object, // Data delegated back to us from parent
},
computed: {
- ...computedFromDefaults(defaults, 'https'), // Getters & setters for the delegated data
+ ...computedFromDefaults(defaults, 'https'), // Getters & setters for the delegated data
showHttp3Warning() {
return this.$props.data.http3.computed;
},
@@ -342,14 +424,18 @@ THE SOFTWARE.
// hstsSubdomains
if (this.$props.data.hsts.computed) {
this.$props.data.hstsSubdomains.enabled = true;
- this.$props.data.hstsSubdomains.computed = this.$props.data.hstsSubdomains.value;
+ this.$props.data.hstsSubdomains.computed =
+ this.$props.data.hstsSubdomains.value;
} else {
this.$props.data.hstsSubdomains.enabled = false;
this.$props.data.hstsSubdomains.computed = false;
}
// hstsPreload
- if (this.$props.data.hsts.computed && this.$props.data.hstsSubdomains.computed) {
+ if (
+ this.$props.data.hsts.computed &&
+ this.$props.data.hstsSubdomains.computed
+ ) {
this.$props.data.hstsPreload.enabled = true;
this.$props.data.hstsPreload.computed = this.$props.data.hstsPreload.value;
} else {
@@ -373,12 +459,14 @@ THE SOFTWARE.
this.$props.data.sslCertificateKey.computed = '';
} else {
// First, check its valid
- if (!Object.keys(data.options).includes(data.computed)) data.computed = data.default;
+ if (!Object.keys(data.options).includes(data.computed))
+ data.computed = data.default;
// Show the correct fields
if (data.computed === 'letsEncrypt') {
this.$props.data.letsEncryptEmail.enabled = true;
- this.$props.data.letsEncryptEmail.computed = this.$props.data.letsEncryptEmail.value;
+ this.$props.data.letsEncryptEmail.computed =
+ this.$props.data.letsEncryptEmail.value;
this.$props.data.sslCertificate.enabled = false;
this.$props.data.sslCertificate.computed = '';
@@ -386,9 +474,11 @@ THE SOFTWARE.
this.$props.data.sslCertificateKey.computed = '';
} else {
this.$props.data.sslCertificate.enabled = true;
- this.$props.data.sslCertificate.computed = this.$props.data.sslCertificate.value;
+ this.$props.data.sslCertificate.computed =
+ this.$props.data.sslCertificate.value;
this.$props.data.sslCertificateKey.enabled = true;
- this.$props.data.sslCertificateKey.computed = this.$props.data.sslCertificateKey.value;
+ this.$props.data.sslCertificateKey.computed =
+ this.$props.data.sslCertificateKey.value;
this.$props.data.letsEncryptEmail.enabled = false;
this.$props.data.letsEncryptEmail.computed = '';
diff --git a/src/nginxconfig/templates/domain_sections/index.js b/src/nginxconfig/templates/domain_sections/index.js
index b808f78..eb7e0f6 100644
--- a/src/nginxconfig/templates/domain_sections/index.js
+++ b/src/nginxconfig/templates/domain_sections/index.js
@@ -34,4 +34,4 @@ import Logging from './logging';
import Restrict from './restrict';
import Onion from './onion';
-export default [ Server, HTTPS, PHP, Python, ReverseProxy, Routing, Logging, Restrict, Onion ];
+export default [Server, HTTPS, PHP, Python, ReverseProxy, Routing, Logging, Restrict, Onion];
diff --git a/src/nginxconfig/templates/domain_sections/logging.vue b/src/nginxconfig/templates/domain_sections/logging.vue
index f0770d6..ac12abf 100644
--- a/src/nginxconfig/templates/domain_sections/logging.vue
+++ b/src/nginxconfig/templates/domain_sections/logging.vue
@@ -28,18 +28,28 @@ THE SOFTWARE.
-
+
-
+
{{ $t('templates.domainSections.logging.enableForThisDomain') }}
-
+
-
+
-
+
@@ -71,13 +86,18 @@ THE SOFTWARE.
-
+
-
+
{{ $t('common.enable') }}
@@ -88,17 +108,27 @@ THE SOFTWARE.
-
+
-
+
{{ $t('templates.domainSections.logging.enableForThisDomain') }}
-
+
-
+
-
+
@@ -134,13 +175,18 @@ THE SOFTWARE.
-
+
-
+
{{ $t('common.enable') }}
@@ -154,7 +200,15 @@ THE SOFTWARE.