From b6325b5fef912f24d1f82df4e240be476554613c Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 7 Jul 2023 13:17:44 +0200 Subject: [PATCH] fix mastodon streaming --- ansible/roles/mastodon/docker-stack.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/mastodon/docker-stack.yml.j2 b/ansible/roles/mastodon/docker-stack.yml.j2 index 1a83545..b7ecf41 100644 --- a/ansible/roles/mastodon/docker-stack.yml.j2 +++ b/ansible/roles/mastodon/docker-stack.yml.j2 @@ -105,6 +105,10 @@ services: environment: - 'REDIS_HOST=redis' - 'LOCAL_DOMAIN=social.pizzapim.nl' + - 'DB_HOST=db' + - 'DB_USER=mastodon' + - 'DB_NAME=mastodon_production' + - 'DB_PASS=password' networks: - mastodon - traefik @@ -124,6 +128,8 @@ services: - "traefik.http.routers.mastodon-streaming.rule=(Host(`social.pizzapim.nl`) && PathPrefix(`/api/v1/streaming`))" - traefik.http.routers.mastodon-streaming.service=mastodon-streaming - traefik.http.services.mastodon-streaming.loadbalancer.server.port=4000 + - traefik.http.routers.mastodon-streaming.tls=true + - traefik.http.routers.mastodon-streaming.tls.certresolver=letsencrypt - traefik.docker.network=traefik sidekiq: image: tootsuite/mastodon:v4.1