From e5c0373bede517b854b750ecff35af34d4f6b44d Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sun, 9 Jul 2023 13:57:44 +0530 Subject: [PATCH] pizza1 support for hyperpipe --- privfrontends/compose/hyperpipe/compose.yml.j2 | 2 +- privfrontends/playbook.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/privfrontends/compose/hyperpipe/compose.yml.j2 b/privfrontends/compose/hyperpipe/compose.yml.j2 index 0269d5c..304bc6a 100644 --- a/privfrontends/compose/hyperpipe/compose.yml.j2 +++ b/privfrontends/compose/hyperpipe/compose.yml.j2 @@ -5,7 +5,7 @@ services: image: codeberg.org/hyperpipe/hyperpipe:latest container_name: hyperpipe-frontend restart: unless-stopped - entrypoint: sh -c 'find /usr/share/nginx/html -type f -exec sed -i s/pipedapi.kavin.rocks/pipedapi.{{ inventory_hostname }}.projectsegfau.lt/g {} \; -exec sed -i s/hyperpipeapi.onrender.com/hyperpipebackend.{{ inventory_hostname }}.projectsegfau.lt/g {} \; && /docker-entrypoint.sh && nginx -g "daemon off;"' + entrypoint: sh -c 'find /usr/share/nginx/html -type f -exec sed -i s/pipedapi.kavin.rocks/{% if inventory_hostname == 'eu' %}api.piped.projectsegfau.lt{%else%}pipedapi.{{inventory_hostname}}.projectsegfau.lt{%endif%}/g {} \; -exec sed -i s/hyperpipeapi.onrender.com/hyperpipebackend.{{ inventory_hostname }}.projectsegfau.lt/g {} \; && /docker-entrypoint.sh && nginx -g "daemon off;"' ports: - '8843:80' hyperpipe-backend: diff --git a/privfrontends/playbook.yaml b/privfrontends/playbook.yaml index 8c6fbf2..5feb061 100644 --- a/privfrontends/playbook.yaml +++ b/privfrontends/playbook.yaml @@ -48,6 +48,7 @@ - simplytranslate - teddit - watchtower + - hyperpipe tasks: # community.docker does not support compose 2.0 right now. # https://github.com/ansible-collections/community.docker/issues/216 @@ -60,7 +61,6 @@ vars: non_pizza_docker_services: - searxng - - hyperpipe tasks: # community.docker does not support compose 2.0 right now. # https://github.com/ansible-collections/community.docker/issues/216