Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Traefik reverse proxy results in Gateway Time-Out error #834

Open
theRealBassist opened this issue Jul 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@theRealBassist
Copy link

theRealBassist commented Jul 12, 2023

Describe the bug

Using a docker-compose setup running through Portainer, I have Traefik setup in the container labels to proxy to red.mydomain.tld. I am able to access Libreddit if I go to the opened port (e.g., 192.168.0.x:8496). However, if I navigate to red.mydomain.tld, then I receive a 504: Gateway Timeout error. Traefik is reporting no issues, and other applications proxied in this manner experience no issues. My assumption is that it is related to the HTTP proxy version 1.1 requirement, but I am unsure.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Setup container w/the attached docker-compose
  2. navigate to red.mydomain.tld
  3. Receive 504 error.

What's the expected behavior?

The webpage should load

Additional context / screenshot

  libreddit:
    image: libreddit/libreddit
    container_name: libreddit
    ports:
      - 8496:8080
    environment:
      - LIBREDDIT_DEFAULT_THEME=${LIBREDDIT_THEME}
      - LIBREDDIT_DEFAULT_POST_SORT=${LIBREDDIT_SORT}
      - LIBREDDIT_DEFAULT_SHOW_NSFW=${LIBREDDIT_SHOW_NSFW}
      - LIBREDDIT_DEFAULT_BLUR_NSFW=${LIBREDDIT_BLUR_NSFW}
      - LIBREDDIT_DEFAULT_AUTOPLAY_VIDEOS=${LIBREDDIT_AUTOPLAY}
      - LIBREDDIT_DEFAULT_HIDE_AWARDS=${LIBREDDIT_HIDE_AWARDS}
      - LIBREDDIT_ROBOTS_DISABLE_INDEXING=${LIBREDDIT_INDEXING}
      - LIBREDDIT_FRONTEND=${LIBREDDIT_PUSHSHIFT}
      - LIBREDDIT_DEFAULT_SUBSCRIPTIONS=${LIBREDDIT_SUBS}
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.libreddit.rule=Host(`red.mydomain.tld`)"
      - "traefik.http.routers.libreddit.entrypoints=https"
      - "traefik.http.routers.libreddit.tls.certresolver=myresolver"
      - "traefik.http.services.libreddit.loadbalancer.server.port=8080"
@theRealBassist theRealBassist added the bug Something isn't working label Jul 12, 2023
@LeonMusCoden
Copy link

Hi @theRealBassist,
did you find a solution? I'm facing the same issues

@theRealBassist
Copy link
Author

Hi @theRealBassist, did you find a solution? I'm facing the same issues

Hey, so I don't 100% remember what I changed, but looking over my docker-compose file, I added the Traefik network. In general, I've found that specifically adding the traefik network to containers helps with connection issues like this.

Sorry that I can't be of more assistance. Let me know if you have any other questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants