podsync icon indicating copy to clipboard operation
podsync copied to clipboard

Bind port 4443 to 80 [Docker + Traefik]

Open Oschly opened this issue 6 years ago • 2 comments

Hello! I have a problem with podsync. I have podsync set with Traefik and Docker like that:

version: '2.2'

services:
  podsync:
    container_name: podsync
    ports:
      - 4443:4443
    image: mxpv/podsync:latest
    restart: always
    labels:
            - traefik.docker.network = [name]
            - traefik.enable = true
            - traefik.backend = Podsync
            - traefik.frontend.rule = Host:sub.domain.tld:4443
            - traefik.port = 80
    volumes:
      - /path/:/app/data/
      - /path/config.toml:/app/config.toml

with given config:

[server]
port = 4443
hostname = "http://sub.domain.tld:4443"
data_dir = "/app/data" # Don't change if you run podsync via docker

site works, but the problem is that pocket casts after adding it to feed, tries to take podcasts from port 80. I've tried to set everything as 4443, but it doesn't work. And important is that I can't bind it to 80 inside docker-compose, because other service owns that (domain.tld:80).

Oschly avatar Mar 03 '20 15:03 Oschly

Hello. Can you check that links to videos are correct in the feed? (point to 8443 port)

mxpv avatar Mar 06 '20 20:03 mxpv

If I open that video manually (going to sub.domain.tld:4443 and select any media from there) it plays as it should. Even when I modify the link that pocketcasts opens when I press download video by adding port 4443 to link, I can get that media file. I want to add that every subdomain, not only the one that I chose, when I add to it port 4443, it points to podsync server.

Oschly avatar Mar 07 '20 11:03 Oschly