diff --git a/privfrontends/compose/hyperpipe/compose.yml.j2 b/privfrontends/compose/hyperpipe/compose.yml.j2 new file mode 100644 index 0000000..0269d5c --- /dev/null +++ b/privfrontends/compose/hyperpipe/compose.yml.j2 @@ -0,0 +1,18 @@ +version: '3' + +services: + hyperpipe-frontend: + 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;"' + ports: + - '8843:80' + hyperpipe-backend: + image: codeberg.org/hyperpipe/hyperpipe-backend:latest + container_name: hyperpipe-backend + environment: + - HYP_PROXY=pipedproxy.{{ inventory_hostname }}.projectsegfau.lt + restart: unless-stopped + ports: + - '3536:3000' diff --git a/privfrontends/playbook.yaml b/privfrontends/playbook.yaml index 4800fef..8c6fbf2 100644 --- a/privfrontends/playbook.yaml +++ b/privfrontends/playbook.yaml @@ -60,6 +60,7 @@ 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 diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index e8f3ec3..aad5a3d 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -342,6 +342,13 @@ safetwitch.{{inventory_hostname}}.projectsegfau.lt safetwitch.projectsegfau.lt t api.safetwitch.{{inventory_hostname}}.projectsegfau.lt { reverse_proxy :5071 } +hyperpipe.{{inventory_hostname}}.projectsegfau.lt hyperpipe.projectsegfau.lt hp.psf.lt hp.{{inventory_hostname}}.psf.lt { + import def + reverse_proxy :8843 +} +api.hyperpipebackend.{{inventory_hostname}}.projectsegfau.lt { + reverse_proxy :3536 +} {% if inventory_hostname == 'eu' %} {% else %} search.{{inventory_hostname}}.projectsegfau.lt s.psf.lt s.{{inventory_hostname}}.psf.lt {