/lynx/ - LynxChan

[Return] [Catalog] [Bottom]
Mode: Reply
Name
Subject
Message

Max message length: 4096

Files (?)

Max files size: 8.00 MB Max files: 8

Captcha
E-mail
Password

(used to delete files and postings)

Misc

Remember to follow the rules


Accepting btc donations at: 1Jv11eRMNPwRc1jK1A1Pye5cH2kc5urtLP
[ / / ]

Error 502 using Clouflare Anonymous 12/21/2021 (Tue) 18:44:25 Id:72f012 No. 3482
I'm trying to set up Lynxchan using cloudflare and nginx, but it keeps dropping the same error. I alreeady checked the hostnames and they are the correct ones, but I still can't figure out what am I doing wrong. I followed the steps of this guy: https://web.archive.org/web/20210226210513/https://bchan.net/b/res/1.html
(32.39 KB 880x684 error1.PNG)
No idea. Is lynxchan outputting any errors?
>>3483 I already checked an no. Port 8080 is working as expected, I believe that the problem lies on Nginx. Is there another way to at least run the server in htttps?
>>3482 I'm no expert, but looking it up 502 means Cloudflare is unable to contact your server. I see the tutorial has you setting up a whitelist for Cloudflare, have you tried temporarily disabling ufw to see if it's perhaps an issue with your firewall? Also can check to see if your site is available on port 80. Might give some insight on the problem, whether it's with nginx, Cloudflare, or ufw.
>>3488 As I said in the previous one, I literally followed every step listed in this website. (Check the Cloudflare part in the second post.) The only difference is that instead of using Lynxchan 2.4.0 I'm using 2.6.15. >have you tried temporarily disabling ufw to see if it's perhaps an issue with your firewall? Yes, and still nothing. https://web.archive.org/web/20210226210513/https://bchan.net/b/res/1.html
>>3489 where did you get cfs ips from
>>3489 So no site on port 80 with ufw disabled? If so, then I would probably think something with nginx as well. Checking my notes, one of the issues I had setting up nginx was it causing my system to take forever to restart waiting for a timeout. What I needed to do to fix it was to install the package "haveged". I can't remember how far into configuring Cloudflare I was when I did it, so it may or may not help here. Also like the other suggested, make sure you use the latest Cloudflare IPs from here: https://www.cloudflare.com/ips/
>>3490 >>3491 Also did that, I doubled checked everything to make sure in the UFW. I organized them like this. sudo ufw allow from 173.245.48.0/20 to any port https sudo ufw allow from 103.21.244.0/22 to any port https sudo ufw allow from 103.22.200.0/22 to any port https sudo ufw allow from 103.31.4.0/22 to any port https sudo ufw allow from 141.101.64.0/18 to any port https sudo ufw allow from 108.162.192.0/18 to any port https sudo ufw allow from 190.93.240.0/20 to any port https sudo ufw allow from 188.114.96.0/20 to any port https sudo ufw allow from 197.234.240.0/22 to any port https sudo ufw allow from 198.41.128.0/17 to any port https sudo ufw allow from 162.158.0.0/15 to any port https sudo ufw allow from 104.16.0.0/13 to any port https sudo ufw allow from 104.24.0.0/14 to any port https sudo ufw allow from 172.64.0.0/13 to any port https sudo ufw allow from 131.0.72.0/22 to any port https sudo ufw allow from 2400:cb00::/32 to any port https sudo ufw allow from 2606:4700::/32 to any port https sudo ufw allow from 2803:f800::/32 to any port https sudo ufw allow from 2405:b500::/32 to any port https sudo ufw allow from 2405:8100::/32 to any port https sudo ufw allow from 2a06:98c0::/29 to any port https sudo ufw allow from 2c0f:f248::/32 to any port https
>>3492 you already said it's not ufw
>>3493 Sorry, I forgot that I repeated that message. Though, could it be the Api Key then? I'm in correct with putting the global one? I saw in guide for an unrelated app that they use the CA key, but I'm not sure about that.
>>3494 Following this message. Could it be that there is a more updated guide to do this, considering that it was made around 2020.
>>3495 There's: https://web.archive.org/web/20211020120305/https://lynxchan.com/lynxchan/res/1.html and https://web.archive.org/web/20211020120305/https://lynxchan.com/lynxchan/res/7.html which seem to be more recent versions of the same guide.
>>3484 You can test port 443 to see if the issue is nginx. And while lynxchan can handle https on it's own, it's a bit wonky because node's https features don't see much usage, so they are not very polished.
>>3497 How can I do this? I'm going to try to use another server that doesn't requires that level of security. Do you know how can I run Lynxchan on HTTPS, let it be independently or through Nginx without the whole Certbot part.
>>3500 >without the whole Certbot part. I know you can self sign certificates, but I don't think most browsers will accept it. Which is part of the reason for Certbot.
>>3501 Kek, I just realized that. Either way, how can I do it that way, at least without Cloudflare.
>>3502 I'd imagine you should be able to follow much of the same guide here (>>3496), just point your domain to your server and not have the ufw whitelist. Of course the guide will still have you getting certificates from Cloudflare. Also if it turns out the issue was with nginx, might just end up that the rest of the Cloudflare stuff starts working as well once you sort it out.
>>3500 >How can I do this? Just curl to it from localhost. Then curl from somewhere else.
>>3505 And by using nginx with certbot how? Without Cloudflare of course.
>>3507 I don't know, I don't use nginx or LE.
>>3508 Sorry, when you mean curl from localhost you mean what?
>>3510 Use the command curl from the same computer running lynxchan requesting a page.
>>3503 >>3482 Here's one other thing I have that may or may not be of use: I remembered that a while ago I started to put together a shell script to automatically configure nginx/Cloudflare. I will warn you that I have not tested this and haven't really looked at it in a while, but theoretically everything should be here. It basically goes along with the same guides that have been posted here. Maybe you can read through it and maybe it'll be helpful. Figured I might as well post it since I have it. https://u.smutty.horse/meuljpmlvzv.sh
>>3512 Thanks I'll try to look into it and report anything if something comes up. But with this script I theoretically wouldn't need to meddle with nginx itself(activating ufw, editing /sites-available/default) right?
>>3513 That was the original idea behind it anyway. Basically once you've got Lynxchan running, you could run this and it'd take care of the rest with ufw, nginx, and certbot. As I said, I never got around to testing it as I didn't really have an extra test setup to verify it. I was figuring you'd probably just look through and use it as reference (though it should be basically the same as the guides ITT). I guess if you really want to run it, could probably comment out the ufw part since you've already got that. Make backups of the nginx configs/any file the script modifies. I'm pretty sure it'll overwrite existing files.
lynxcuck btfo
>>3496 For your information: the ufw section on lynxchan.com is not used by me. Only use Cloudflare to hide the IP. Also, some of the guides in that tutorial are outdated and no longer apply to the new version.
>>3514 Yes, thank you so much. While the script had parts that are non functional, it worked to perfection this time after I handled some things manually(like generating the certificates). Now that this part is over, I have one more question about the front end PenumbraLynx, can it display some popular posts in the front page similar to 4chan for example?
>>3521 And at the same time, is the part of the tutorial about GeoIp flags up to date?
>>3521 I'm so glad things ended up working out for you. >can it display some popular posts in the front page similar to 4chan for example? Yes. There are settings in Global Settings for this. You can set how many posts, images, and top boards to display on the home page. Can also select to only show images from SFW boards there too. >>3522 You'll have to wait for a response from someone else. I don't use the flags.
>>3522 idk about the tutorial but flags are here https://a.yeshoney.xyz/geo/

Я Щ Е Р Т Ю У И О П
Q W E R T Y U I O P
А С Д Ф Г Х Й К Л
A S D F G H J K L
З Ж Ц В Б Н М
Z X C V B N M
Delete
Report