+ {{ $t('templates.globalSections.docker.applyDockerTweaksForNginx') }}
+
+
+
diff --git a/src/nginxconfig/i18n/en/common.js b/src/nginxconfig/i18n/en/common.js
index 22d0a74..00b1786 100644
--- a/src/nginxconfig/i18n/en/common.js
+++ b/src/nginxconfig/i18n/en/common.js
@@ -35,8 +35,6 @@ export default {
https: 'HTTPS',
letsEncrypt: 'Let\'s Encrypt',
python: 'Python',
- docker: 'Docker',
- dockerCompose: 'Docker Compose',
wordPress: 'WordPress',
drupal: 'Drupal',
magento: 'Magento',
diff --git a/src/nginxconfig/i18n/en/templates/global_sections/docker.js b/src/nginxconfig/i18n/en/templates/global_sections/docker.js
index 8e9cecc..510111b 100644
--- a/src/nginxconfig/i18n/en/templates/global_sections/docker.js
+++ b/src/nginxconfig/i18n/en/templates/global_sections/docker.js
@@ -26,7 +26,16 @@ THE SOFTWARE.
import common from '../../common';
+const docker = 'Docker';
+const dockerfile = 'Dockerfile';
+
export default {
- dockerfile: `Include Dockerfile to run nginx with ${common.docker}`,
- dockerCompose: 'Include docker-compose to run nginx with docker-compose',
+ docker,
+ dockerfile,
+ dockerCompose: `${docker} Compose`,
+ applyDockerTweaks: `Apply ${docker} tweaks`,
+ applyDockerTweaksForNginx: `Apply configuration tweaks for running ${common.nginx} with ${docker}`,
+ applyDockerTweaksExplainer: `Updates the ${common.nginx} user to be nginx
and the pid to /var/run/nginx.pid
`,
+ includeDockerfile: `Include ${dockerfile} to run ${common.nginx} with ${docker}`,
+ includeDockerCompose: `Include docker-compose to run ${common.nginx} with docker-compose`,
};
diff --git a/src/nginxconfig/i18n/zh-cn/common.js b/src/nginxconfig/i18n/zh-cn/common.js
index 5e305b2..579b395 100644
--- a/src/nginxconfig/i18n/zh-cn/common.js
+++ b/src/nginxconfig/i18n/zh-cn/common.js
@@ -35,8 +35,6 @@ export default {
https: 'HTTPS',
letsEncrypt: 'Let\'s Encrypt',
python: 'Python',
- docker: 'Docker',
- dockerCompose: 'Docker Compose',
wordPress: 'WordPress',
drupal: 'Drupal',
magento: 'Magento',
diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js
index 54b89b5..d9cac35 100644
--- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js
+++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js
@@ -26,7 +26,16 @@ THE SOFTWARE.
import common from '../../common';
+const docker = 'Docker';
+const dockerfile = 'Dockerfile';
+
export default {
- dockerfile: `生成Dockerfile运行${common.nginx}与${common.docker}`,
- dockerCompose: '生成docker-compose.yaml来运行nginx docker-compose',
+ docker,
+ dockerfile,
+ dockerCompose: `${docker} Compose`, // TODO: translate
+ applyDockerTweaks: `Apply ${docker} tweaks`, // TODO: translate
+ applyDockerTweaksForNginx: `Apply configuration tweaks for running ${common.nginx} with ${docker}`, // TODO: translate
+ applyDockerTweaksExplainer: `Updates the ${common.nginx} user to be nginx
and the pid to /var/run/nginx.pid
`, // TODO: translate
+ includeDockerfile: `生成${dockerfile}运行${common.nginx}与${docker}`,
+ includeDockerCompose: `生成docker-compose.yaml来运行${common.nginx} docker-compose`,
};
diff --git a/src/nginxconfig/i18n/zh-tw/common.js b/src/nginxconfig/i18n/zh-tw/common.js
index 000cd56..808cc8f 100644
--- a/src/nginxconfig/i18n/zh-tw/common.js
+++ b/src/nginxconfig/i18n/zh-tw/common.js
@@ -35,8 +35,6 @@ export default {
https: 'HTTPS',
letsEncrypt: 'Let\'s Encrypt',
python: 'Python',
- docker: 'Docker',
- dockerCompose: 'Docker Compose',
wordPress: 'WordPress',
drupal: 'Drupal',
magento: 'Magento',
diff --git a/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js b/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js
index 104bff8..92cc143 100644
--- a/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js
+++ b/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js
@@ -26,7 +26,16 @@ THE SOFTWARE.
import common from '../../common';
+const docker = 'Docker';
+const dockerfile = 'Dockerfile';
+
export default {
- dockerfile: `生成Dockerfile運行${common.nginx}與${common.docker}`,
- dockerCompose: '生成docker-compose.yaml來運行nginx docker-compose',
+ docker,
+ dockerfile,
+ dockerCompose: `${docker} Compose`, // TODO: translate
+ applyDockerTweaks: `Apply ${docker} tweaks`, // TODO: translate
+ applyDockerTweaksForNginx: `Apply configuration tweaks for running ${common.nginx} with ${docker}`, // TODO: translate
+ applyDockerTweaksExplainer: `Updates the ${common.nginx} user to be nginx
and the pid to /var/run/nginx.pid
`, // TODO: translate
+ includeDockerfile: `生成${dockerfile}運行${common.nginx}與${docker}`,
+ includeDockerCompose: `生成docker-compose.yaml來運行${common.nginx} docker-compose`,
};
diff --git a/src/nginxconfig/scss/_fields.scss b/src/nginxconfig/scss/_fields.scss
index fbfc76d..4263a73 100644
--- a/src/nginxconfig/scss/_fields.scss
+++ b/src/nginxconfig/scss/_fields.scss
@@ -48,6 +48,14 @@ THE SOFTWARE.
&.is-aligned-top {
align-items: flex-start;
+
+ > p {
+ @include sailec-medium;
+
+ color: $dark-grey;
+ font-size: 14px;
+ margin: 0 .5rem;
+ }
}
+ .control {
@@ -118,6 +126,14 @@ THE SOFTWARE.
color: $dark-grey;
padding: 0 ($margin * 1.5);
}
+
+ &.is-tiny {
+ font-size: 14px;
+ height: auto;
+ line-height: normal;
+ margin: .2rem .25rem;
+ padding: ($margin * .5) ($margin * .75);
+ }
}
.control {
diff --git a/src/nginxconfig/templates/global_sections/docker.vue b/src/nginxconfig/templates/global_sections/docker.vue
index 1dcd388..103ffbb 100644
--- a/src/nginxconfig/templates/global_sections/docker.vue
+++ b/src/nginxconfig/templates/global_sections/docker.vue
@@ -28,7 +28,24 @@ THE SOFTWARE.
+ {{ $t('templates.globalSections.docker.applyDockerTweaksForNginx') }}
+
+
+