diff --git a/templates/compose/hckrnws.yaml.j2 b/templates/compose/hckrnws.yaml.j2 new file mode 100644 index 0000000..52a0c00 --- /dev/null +++ b/templates/compose/hckrnws.yaml.j2 @@ -0,0 +1,20 @@ +# {{ ansible_managed }} +services: + hckrnws: + container_name: hckrnws + image: git.opnxng.com/opnxng/hckrnws:latest + restart: unless-stopped + security_opt: + - no-new-privileges + environment: + - PUID=1000 + - PGID=1000 + - TZ=Asia/Singapore + ports: + - 8909:3000 + networks: + - hckrnws + +networks: + hckrnws: + name: hckrnws diff --git a/templates/conf/Caddyfile.j2 b/templates/conf/Caddyfile.j2 index 69c5c4b..00d0666 100755 --- a/templates/conf/Caddyfile.j2 +++ b/templates/conf/Caddyfile.j2 @@ -571,24 +571,24 @@ } } -# @tt host tt.{$HOSTNAME} -# handle @tt { -# encode zstd gzip -# reverse_proxy { -# to {{ oracle1_private_ip }}:8909 -# to {{ oracle2_private_ip }}:8909 -# to {{ oracle3_private_ip }}:8909 -# to {{ oracle4_private_ip }}:8909 -# lb_policy ip_hash -# lb_try_duration 5s -# lb_try_interval 1s -# fail_duration 30s -# max_fails 3 -# } -# header { -# X-Robots-Tag "noindex, noimageindex, nosnippet, notranslate, noarchive, nofollow" -# } -# } + @hn host hn.{$HOSTNAME} + handle @hn { + encode zstd gzip + reverse_proxy { + to {{ oracle1_private_ip }}:8909 + to {{ oracle2_private_ip }}:8909 + to {{ oracle3_private_ip }}:8909 + to {{ oracle4_private_ip }}:8909 + lb_policy ip_hash + lb_try_duration 5s + lb_try_interval 1s + fail_duration 30s + max_fails 3 + } + header { + X-Robots-Tag "noindex, noimageindex, nosnippet, notranslate, noarchive, nofollow" + } + } @ti host ti.{$HOSTNAME} handle @ti { diff --git a/vars/services.yaml b/vars/services.yaml index b7f584d..065bc2f 100644 --- a/vars/services.yaml +++ b/vars/services.yaml @@ -1,12 +1,10 @@ -compose: - oracle1: - - redlib - oracle2: - - redlib - oracle3: - - redlib +config: oracle4: - - redlib + - caddy + +compose: + oracle4: + - caddy # ---------------------------------------------------------------------------------------------------- @@ -21,6 +19,7 @@ deployed-compose: - send - privatebin #################### + - hckrnws - searxng - redlib - voyager @@ -30,7 +29,6 @@ deployed-compose: - cinny - gothub - scribe - - proxitok - proxigram - it-tools - simplytranslate @@ -43,6 +41,7 @@ deployed-compose: oracle2: - wolfree #################### + - hckrnws - searxng - redlib - voyager @@ -52,7 +51,6 @@ deployed-compose: - cinny - gothub - scribe - - proxitok - proxigram - it-tools - simplytranslate @@ -69,6 +67,7 @@ deployed-compose: - ntfy - breezewiki #################### + - hckrnws - searxng - redlib - voyager @@ -78,7 +77,6 @@ deployed-compose: - cinny - gothub - scribe - - proxitok - proxigram - it-tools - simplytranslate @@ -92,6 +90,7 @@ deployed-compose: - caddy - geoipupdate #################### + - hckrnws - searxng - redlib - voyager @@ -101,7 +100,6 @@ deployed-compose: - cinny - gothub - scribe - - proxitok - proxigram - it-tools - simplytranslate