mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 18:59:17 +08:00
Move setup section strings to i18n
This commit is contained in:
@@ -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 };
|
||||
|
25
src/nginxconfig/i18n/en/templates/setup_sections/certbot.js
Normal file
25
src/nginxconfig/i18n/en/templates/setup_sections/certbot.js
Normal file
@@ -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',
|
||||
};
|
28
src/nginxconfig/i18n/en/templates/setup_sections/download.js
Normal file
28
src/nginxconfig/i18n/en/templates/setup_sections/download.js
Normal file
@@ -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: '<b>Download</b> the generated config:',
|
||||
andUploadItToYourServers: 'and <b>upload</b> 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 <b>configuration directory</b> on your server:',
|
||||
createABackupOfYourCurrentNginxConfiguration: 'Create a <b>backup</b> of your current NGINX configuration:',
|
||||
extractTheNewCompressedConfigurationArchiveUsingTar: '<b>Extract</b> the new compressed configuration archive using tar:',
|
||||
download: 'Download',
|
||||
};
|
21
src/nginxconfig/i18n/en/templates/setup_sections/go_live.js
Normal file
21
src/nginxconfig/i18n/en/templates/setup_sections/go_live.js
Normal file
@@ -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!',
|
||||
};
|
22
src/nginxconfig/i18n/en/templates/setup_sections/index.js
Normal file
22
src/nginxconfig/i18n/en/templates/setup_sections/index.js
Normal file
@@ -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 };
|
22
src/nginxconfig/i18n/en/templates/setup_sections/ssl.js
Normal file
22
src/nginxconfig/i18n/en/templates/setup_sections/ssl.js
Normal file
@@ -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 <b>Diffie-Hellman keys</b> by running this command on your server:',
|
||||
createACommonAcmeChallengeDirectoryForLetsEncrypt: 'Create a common <b>ACME-challenge</b> directory (for <b>Let\'s Encrypt</b>):',
|
||||
noAdditionalStepsAreNeededToSetUpSslForNginx: 'No additional steps are needed to set up SSL for your NGINX configuration.',
|
||||
sslInit: 'SSL init',
|
||||
};
|
Reference in New Issue
Block a user