From 5d57ffadc4e1b0384e79ceab5145a24a3ab02831 Mon Sep 17 00:00:00 2001 From: Danyliuk Date: Fri, 11 Nov 2022 09:29:08 +0200 Subject: [PATCH] Add antora --- .gitignore | 19 +++++++++++++++++++ antora.yml | 9 +++++++++ application.yml | 2 +- modules/ROOT/nav.adoc | 0 modules/ROOT/pages/general.adoc | 19 +++++++++++++++++++ 5 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 antora.yml create mode 100644 modules/ROOT/nav.adoc create mode 100644 modules/ROOT/pages/general.adoc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..034390a --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + diff --git a/antora.yml b/antora.yml new file mode 100644 index 0000000..640ca26 --- /dev/null +++ b/antora.yml @@ -0,0 +1,9 @@ +name: law +version: ~ # https://docs.antora.org/antora/latest/component-with-no-version/ +start_page: general.adoc +asciidoc: + attributes: + source-language: asciidoc@ + table-caption: false +nav: +- modules/ROOT/nav.adoc diff --git a/application.yml b/application.yml index 21a7143..6ef2839 100644 --- a/application.yml +++ b/application.yml @@ -66,7 +66,7 @@ metadata: external-dns.alpha.kubernetes.io/target: traefik.codemowers.ee spec: rules: - - host: venyae.codemowers.ee + - host: custom.codemowers.ee #<1> http: paths: - pathType: Prefix diff --git a/modules/ROOT/nav.adoc b/modules/ROOT/nav.adoc new file mode 100644 index 0000000..e69de29 diff --git a/modules/ROOT/pages/general.adoc b/modules/ROOT/pages/general.adoc new file mode 100644 index 0000000..e94aa48 --- /dev/null +++ b/modules/ROOT/pages/general.adoc @@ -0,0 +1,19 @@ += NGiNX lab + +Steps to local run: + +1. in https://dashboard.codemowers.eu/ add sandbox. +2. Mark next options: + * Dex + * Instantiate Prometheus for this namespace + * Instantiate dedicated Traeifk instance in this namespace +3. Confirm new sandbox +4. Set your custom subdomain +[source, yaml] +---- +include::../../../application.yml[] +---- +<1> custom subdomain + +5.kubectl apply -f application.yml -n {sandbox-name} +