From 592afdced9bd996eb25e4f4a0267cd4f4738eac3 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sat, 6 Sep 2025 11:39:05 +0200 Subject: [PATCH] add waybackproxy --- inventories/z9/host_vars/waybackproxy.yaml | 7 +++++++ inventories/z9/hosts.yaml | 6 ++++++ .../z9/waybackproxy/docker_compose/compose.yaml.j2 | 10 ++++++++++ .../z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf | 5 +++++ 4 files changed, 28 insertions(+) create mode 100644 inventories/z9/host_vars/waybackproxy.yaml create mode 100644 resources/z9/waybackproxy/docker_compose/compose.yaml.j2 create mode 100644 resources/z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf diff --git a/inventories/z9/host_vars/waybackproxy.yaml b/inventories/z9/host_vars/waybackproxy.yaml new file mode 100644 index 0000000..18540ee --- /dev/null +++ b/inventories/z9/host_vars/waybackproxy.yaml @@ -0,0 +1,7 @@ +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/z9/waybackproxy/docker_compose/compose.yaml.j2') }}" +docker_compose__configuration_files: [ ] + +nginx__version_spec: "" +nginx__configurations: + - name: waybackproxy.ccchh.net + content: "{{ lookup('ansible.builtin.file', 'resources/z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf') }}" diff --git a/inventories/z9/hosts.yaml b/inventories/z9/hosts.yaml index 4d847bf..62cacf1 100644 --- a/inventories/z9/hosts.yaml +++ b/inventories/z9/hosts.yaml @@ -11,6 +11,9 @@ all: ansible_user: chaos thinkcccore0: ansible_host: thinkcccore0.z9.ccchh.net + waybackproxy: + ansible_host: waybackproxy.ccchh.net + ansible_user: chaos yate: ansible_host: yate.ccchh.net ansible_user: chaos @@ -20,6 +23,7 @@ certbot_hosts: docker_compose_hosts: hosts: dooris: + waybackproxy: yate: foobazdmx_hosts: hosts: @@ -32,11 +36,13 @@ infrastructure_authorized_keys_hosts: dooris: light: authoritative-dns: + waybackproxy: yate: nginx_hosts: hosts: dooris: light: + waybackproxy: ola_hosts: hosts: light: diff --git a/resources/z9/waybackproxy/docker_compose/compose.yaml.j2 b/resources/z9/waybackproxy/docker_compose/compose.yaml.j2 new file mode 100644 index 0000000..b6752fa --- /dev/null +++ b/resources/z9/waybackproxy/docker_compose/compose.yaml.j2 @@ -0,0 +1,10 @@ +services: + # https://github.com/richardg867/WaybackProxy + waybackproxy: + image: cttynul/waybackproxy:latest + environment: + DATE: 19990101 + DATE_TOLERANCE: 730 + ports: + - "1999:8888" + restart: unless-stopped diff --git a/resources/z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf b/resources/z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf new file mode 100644 index 0000000..7c616c7 --- /dev/null +++ b/resources/z9/waybackproxy/nginx/waybackproxy.ccchh.net.conf @@ -0,0 +1,5 @@ +# TODO: set up caching proxy + +# server { +# listen 1999 +# }