diff --git a/src/nginxconfig/i18n/en/templates/index.js b/src/nginxconfig/i18n/en/templates/index.js index 3b8ce2d..4b76023 100644 --- a/src/nginxconfig/i18n/en/templates/index.js +++ b/src/nginxconfig/i18n/en/templates/index.js @@ -17,5 +17,6 @@ limitations under the License. import app from './app'; import domainSections from './domain_sections'; import globalSections from './global_sections'; +import setupSections from './setup_sections'; -export default { app, domainSections, globalSections }; +export default { app, domainSections, globalSections, setupSections }; diff --git a/src/nginxconfig/i18n/en/templates/setup_sections/certbot.js b/src/nginxconfig/i18n/en/templates/setup_sections/certbot.js new file mode 100644 index 0000000..5371c27 --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup_sections/certbot.js @@ -0,0 +1,25 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + commentOutSslDirectivesInConfiguration: 'Comment out SSL related directives in the configuration:', + reloadYourNginxServer: 'Reload your NGINX server:', + obtainSslCertificatesFromLetsEncrypt: 'Obtain SSL certificates from Let\'s Encrypt using Certbot:', + uncommentSslDirectivesInConfiguration: 'Uncomment SSL related directives in the configuration:', + configureCertbotToReloadNginxOnCertificateRenewal: 'Configure Certbot to reload NGINX when it successfully renews certificates:', + certbotDoesNotNeedToBeSetupForYourConfiguration: 'Certbot does not need to be set up for your NGINX configuration.', + certbot: 'Certbot', +}; diff --git a/src/nginxconfig/i18n/en/templates/setup_sections/download.js b/src/nginxconfig/i18n/en/templates/setup_sections/download.js new file mode 100644 index 0000000..7ebbd3e --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup_sections/download.js @@ -0,0 +1,28 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + downloadTheGeneratedConfig: 'Download the generated config:', + andUploadItToYourServers: 'and upload it to your server\'s', + directory: 'directory.', + or: 'or, ', + copyBase64StringOfCompressedConfig: 'Copy a base64 string of the compressed config', + pasteItInYourServersCommandLineAndExecute: ', paste it in your server\'s command line and execute it.', + navigateToYourNginxConfigurationDirectoryOnYourServer: 'Navigate to your NGINX configuration directory on your server:', + createABackupOfYourCurrentNginxConfiguration: 'Create a backup of your current NGINX configuration:', + extractTheNewCompressedConfigurationArchiveUsingTar: 'Extract the new compressed configuration archive using tar:', + download: 'Download', +}; diff --git a/src/nginxconfig/i18n/en/templates/setup_sections/go_live.js b/src/nginxconfig/i18n/en/templates/setup_sections/go_live.js new file mode 100644 index 0000000..6172cb5 --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup_sections/go_live.js @@ -0,0 +1,21 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + letsGoLive: 'Let\'s go live!', + reloadNginxToLoadInYourNewConfiguration: 'Reload NGINX to load in your new configuration:', + goLive: 'Go live!', +}; diff --git a/src/nginxconfig/i18n/en/templates/setup_sections/index.js b/src/nginxconfig/i18n/en/templates/setup_sections/index.js new file mode 100644 index 0000000..783faff --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup_sections/index.js @@ -0,0 +1,22 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import certbot from './certbot'; +import download from './download'; +import goLive from './go_live'; +import ssl from './ssl'; + +export default { certbot, download, goLive, ssl }; diff --git a/src/nginxconfig/i18n/en/templates/setup_sections/ssl.js b/src/nginxconfig/i18n/en/templates/setup_sections/ssl.js new file mode 100644 index 0000000..e1dc86d --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup_sections/ssl.js @@ -0,0 +1,22 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + generateDiffieHellmanKeysByRunningThisCommandOnYourServer: 'Generate Diffie-Hellman keys by running this command on your server:', + createACommonAcmeChallengeDirectoryForLetsEncrypt: 'Create a common ACME-challenge directory (for Let\'s Encrypt):', + noAdditionalStepsAreNeededToSetUpSslForNginx: 'No additional steps are needed to set up SSL for your NGINX configuration.', + sslInit: 'SSL init', +}; diff --git a/src/nginxconfig/templates/setup_sections/certbot.vue b/src/nginxconfig/templates/setup_sections/certbot.vue index bda4a73..6988381 100644 --- a/src/nginxconfig/templates/setup_sections/certbot.vue +++ b/src/nginxconfig/templates/setup_sections/certbot.vue @@ -19,7 +19,7 @@ limitations under the License.
  1. - Comment out SSL related directives in the configuration: + {{ i18n.templates.setupSections.certbot.commentOutSslDirectivesInConfiguration }}

    - Reload your NGINX server: + {{ i18n.templates.setupSections.certbot.reloadYourNginxServer }}

    @@ -37,7 +37,7 @@ limitations under the License.
  2. - Obtain SSL certificates from Let's Encrypt using Certbot: + {{ i18n.templates.setupSections.certbot.obtainSslCertificatesFromLetsEncrypt }}

    @@ -45,7 +45,7 @@ limitations under the License.
  3. - Uncomment SSL related directives in the configuration: + {{ i18n.templates.setupSections.certbot.uncommentSslDirectivesInConfiguration }}

    @@ -53,7 +53,7 @@ limitations under the License.
  4. - Reload your NGINX server: + {{ i18n.templates.setupSections.certbot.reloadYourNginxServer }}

    @@ -61,7 +61,7 @@ limitations under the License.
  5. - Configure Certbot to reload NGINX when it successfully renews certificates: + {{ i18n.templates.setupSections.certbot.configureCertbotToReloadNginxOnCertificateRenewal }}

    @@ -74,7 +74,7 @@ limitations under the License.
    @@ -92,7 +92,7 @@ limitations under the License. components: { BashPrism, }, - display: 'Certbot', + display: i18n.templates.setupSections.certbot.certbot, key: 'certbot', props: { data: Object, diff --git a/src/nginxconfig/templates/setup_sections/download.vue b/src/nginxconfig/templates/setup_sections/download.vue index 531c5ec..7c48fc6 100644 --- a/src/nginxconfig/templates/setup_sections/download.vue +++ b/src/nginxconfig/templates/setup_sections/download.vue @@ -19,19 +19,26 @@ limitations under the License.
    1. - Download the generated config: {{ $parent.tarName }} + +  {{ $parent.tarName }}
      - and upload it to your server's {{ $parent.nginxDir }} directory. + + {{ $parent.nginxDir }} + {{ i18n.templates.setupSections.download.directory }}

      - or, Copy a base64 string of the compressed config, paste it in - your server's command line and execute it. + {{ i18n.templates.setupSections.download.or }} + + + {{ i18n.templates.setupSections.download.copyBase64StringOfCompressedConfig }} + +

    2. - Navigate to your NGINX configuration directory on your server: +

      @@ -39,7 +46,7 @@ limitations under the License.
    3. - Create a backup of your current NGINX configuration: +

      @@ -47,7 +54,7 @@ limitations under the License.
    4. - Extract the new compressed configuration archive using tar: +

      @@ -62,7 +69,7 @@ limitations under the License. export default { name: 'SetupDownload', - display: 'Download', + display: i18n.templates.setupSections.download.download, key: 'download', components: { BashPrism, diff --git a/src/nginxconfig/templates/setup_sections/go_live.vue b/src/nginxconfig/templates/setup_sections/go_live.vue index ffc0232..5ed0181 100644 --- a/src/nginxconfig/templates/setup_sections/go_live.vue +++ b/src/nginxconfig/templates/setup_sections/go_live.vue @@ -17,10 +17,10 @@ limitations under the License.