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 ( @dleewee@beehaw.org ) 5•2 years agoI 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.
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 ( @casey@lemmy.wiuf.net ) 3•2 years agoI’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 ( @ture@rational-racoon.de ) 3•2 years agoI 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.
A sweet im gonna look into this later this weekend. Thanks alot!
ture ( @ture@rational-racoon.de ) 3•2 years agoIn 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.
Sure will do 😄
ZebraGoose ( @ZebraGoose@lemmy.steken.xyz ) 2•2 years agoYay! Got it to work finally, but i couldnt make it work without ngnix. Will post my settings later
nihil ( @nihil@hexhiker.com ) 2•2 years agoI’m using Docker with NPM and it was pretty easy to setup
grouvie ( @grouvie@lemmy.help ) 2•2 years agoWhat does your setup look like? Using traefik instead of nginx shouldn’t be a big problem.
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
Did find this today: https://lmmy.tvdl.dev/post/259 Have tried for 2 hours now but couldnt get it to work… Will try again this weekend
beepboopdanger ( @stroskler@lemmy.skl.works ) 1•2 years agoYou can simply use traefik as ssl offloading pointing to the nginx container in the lemmy stack. That’s what I am doing with docker swarm. I have not figured out how to get rid of that additional nginx
Okay, thats what im planning to. Read somewhere you could drop the nginx and just use traefik with the settings in nginx but that over my skills
beepboopdanger ( @stroskler@lemmy.skl.works ) 2•2 years agoI tried this but it’s not working on my site. So basically I am using the default nginx and doin the ssl offloading with Traefik