From 69a2a1499e2ca8b076f5776bd85300b846569b75 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sun, 26 Feb 2023 14:28:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B4=D0=BE=D0=BC=D0=B0=D1=88=D0=BD=D0=B5=D0=B9?= =?UTF-8?q?=20wiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/configuration.yml | 18 ++++++++++++++++++ ansible/templates/Caddyfile.j2 | 7 +++++++ 2 files changed, 25 insertions(+) diff --git a/ansible/configuration.yml b/ansible/configuration.yml index 549be93..10e2ced 100644 --- a/ansible/configuration.yml +++ b/ansible/configuration.yml @@ -6,6 +6,7 @@ dayoff_port: "{{ base_port + 2 }}" homepage_port: "{{ base_port + 3 }}" netdata_port: "{{ base_port + 4 }}" + wiki_port: "{{ base_port + 5 }}" vars_files: - vars/vars.yml @@ -108,3 +109,20 @@ WEB_SERVER_PORT: '127.0.0.1:{{ dayoff_port }}' tags: - apps + + - import_role: + name: docker-app + vars: + username: wiki + extra_groups: + - docker + ssh_keys: + - '{{ lookup("file", "files/av_id_rsa.pub") }}' + env: + PROJECT_NAME: wiki + DOCKER_PREFIX: wiki + IMAGE_PREFIX: wiki + CONTAINER_PREFIX: wiki + WEB_SERVER_PORT: '127.0.0.1:{{ wiki_port }}' + tags: + - apps diff --git a/ansible/templates/Caddyfile.j2 b/ansible/templates/Caddyfile.j2 index 98a8fe7..05e7788 100644 --- a/ansible/templates/Caddyfile.j2 +++ b/ansible/templates/Caddyfile.j2 @@ -23,3 +23,10 @@ status.vakhrushev.me, :29999 { } } +wiki.vakhrushev.me { + tls anwinged@ya.ru + + reverse_proxy { + to 127.0.0.1:{{ wiki_port }} + } +}