diff --git a/src/nginxconfig/scss/style.scss b/src/nginxconfig/scss/style.scss index 8817092..9a1e82c 100644 --- a/src/nginxconfig/scss/style.scss +++ b/src/nginxconfig/scss/style.scss @@ -114,6 +114,26 @@ $highlight: #f2c94c; } } + &.setup { + ol { + color: $dark-blue; + margin: 0 1rem; + text-align: left; + + li { + margin: 0 0 1.5rem; + + p { + overflow-wrap: break-word; + + a { + text-decoration: none; + } + } + } + } + } + .container { padding: 0 1.5rem; } @@ -204,7 +224,7 @@ $highlight: #f2c94c; } .v-select { - .vs__dropdown-toggle { + .vs__dropdown-toggle { // sass-lint:disable-line class-name-format background: rgba($highlight, .35); } } @@ -291,6 +311,7 @@ $highlight: #f2c94c; } } + // sass-lint:disable class-name-format .v-select { &.vs--open { > ul { @@ -308,7 +329,7 @@ $highlight: #f2c94c; } > ul { - display: block !important; + display: block !important; // sass-lint:disable-line no-important margin: 0; opacity: 0; transition: opacity $transition; @@ -346,6 +367,7 @@ $highlight: #f2c94c; } } } + // sass-lint:enable class-name-format .modal { .modal-card { diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index 0544a2e..47ba573 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -53,6 +53,9 @@ limitations under the License.
{{ exportData }}
@@ -71,6 +74,7 @@ limitations under the License.
import i18n from '../i18n';
import Domain from './domain';
import Global from './global';
+ import Setup from './setup';
export default {
name: 'App',
@@ -79,6 +83,7 @@ limitations under the License.
Footer,
Domain,
Global,
+ Setup,
},
data() {
return {
diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue
new file mode 100644
index 0000000..21ef182
--- /dev/null
+++ b/src/nginxconfig/templates/setup.vue
@@ -0,0 +1,85 @@
+
+
+
+
+ Download the generated config: {{ zipName }}
+
+ and upload it to your server's {{ nginxDir }}
directory.
+
+ or, Copy a base64 string of the compressed config, paste it in + your server's command line and execute it. +
+
+ Check that you have unzip installed, or install it, on your server by running this command:
+
+ (unzip -v >/dev/null 2>&1 && echo 'unzip already installed') || sudo apt-get install unzip
+
+ Navigate to your NGINX configuration directory on your server:
+
+ cd {{ nginxDir }}
+
+ Create a backup of your current NGINX configuration:
+
+ tar -czvf nginx_$(date +'%F_%H-%M-%S').tar.gz nginx.conf sites-available/ sites-enabled/ nginxconfig.io/
+
+ Unzip the new compressed configuration archive:
+
+ unzip -o {{ zipName }}
+