this post was submitted on 09 Jun 2023
28 points (100.0% liked)
Lemmy.World Announcements
29099 readers
34 users here now
This Community is intended for posts about the Lemmy.world server by the admins.
Follow us for server news 🐘
Outages 🔥
https://status.lemmy.world
For support with issues at Lemmy.world, go to the Lemmy.world Support community.
Support e-mail
Any support requests are best sent to [email protected] e-mail.
Report contact
- DM https://lemmy.world/u/lwreport
- Email [email protected] (PGP Supported)
Donations 💗
If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.
If you can, please use / switch to Ko-Fi, it has the lowest fees for us
Join the team
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Hmm , when I replace this:
with this:
it breaks, gives 502 when visiting the site...
ideas? (I'm not that much into nginx...)
You could try this
this config snippet is assuming thet you've already got the TLS cert/pem file for lemmy.world elsewhere in your nginx.config
If you get redirected to lemmy.world:1234, then add
absolute_redirect off;
in the 'server' blockLast thing - 307 is a temporary redirect, you might to change it to a permanent one once you've confirmed it's working as intended
Cool, thanks! I'll try that.
Can we get an error log? If no, are you seeing any timeouts in there?
You might want to add the secure port (:443) in your redirect. Otherwise it might be trying to load https on port 80 still, which can’t work.
Notes:
This piece I've pasted above isn't the whole nginx.conf, there's also a large block for the 443 traffic. It's just the http traffic that I need to redirect to 443.
Ok. Now that I think about it, you shouldn’t have to specify the port.