Hello, first post here since leaving Reddit (yay)

Has anyone successfully setup an Lemmy instance with traefik? I was thinking about selfhost a private instance but saw that Lemmy didnt support traefik.

Im thankful for any help 😄

  • dleewee@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    I see no reason you couldn’t. Just change the listen port on the nginx config to something other than 80 (so it doesn’t conflict), then tell treafik to send traffic to that port. Disclaimer, I’m not well versed with treafik, but have worked with several other reverse proxies to know the general idea.

    • ZebraGoose@beehaw.orgOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      OK, i think i understand gonna try this later. I have some services behind traefik but most of them i have followed very detailed guides 😄

      • casey@lemmy.wiuf.net
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        edit-2
        2 years ago

        I’m going to be honest and say it’s probably a challenge, but with the combination of ChatGPT4, I bet you be just as successful as I was! I was able to get my instance to run behind Nginx Proxy Manager. It took several changes but is functional now.

  • ture@rational-racoon.de
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 years ago

    I have to admit I was a bit lazy and started with a new vm when setting up my instance earlier today but I found this thread in the traefik community where someone was asking question on how to setup their traefik config for Lemmy. It’s a bit old, last post is from spring of 2020 but it’s already traefik v2, so hopefully not much changed since then…

    https://community.traefik.io/t/issues-with-router-priorities/4565/12

    EDIT: By being lazy and starting with a new VM, I meant that I could just use the Ansible playbook and had it running in a few minutes.

      • ture@rational-racoon.de
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        In case you get it working it would be really cool if you cold post you config somewhere. Maybe the main dev could even integrated it in the docu at some point. I’m quite sure there are more people who set up there home servers using traefik and that there is an intersection between them and people who consider starting a lemmy instance.

        E.g. I would really like to ditch the VPS I’m currently using for my instance and run it on my home server since there are free resources and I would have to spend the 5 euros for the VPS.

  • grouvie@lemmy.help
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    What does your setup look like? Using traefik instead of nginx shouldn’t be a big problem.

    • ZebraGoose@beehaw.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I run a elitedesk g2 800 with proxmox and have a ubuntu VM with docker. And on that VM i got traefik as my reverse proxy so port 80 is for traefik. But i think i can make it work. I just need to find the time to try it