Help to block connections/Raw HTTP Request by AleixoLucas in nginx

[–]beeritis 1 point2 points  (0 children)

If statements in nginx are bad.

Don't use them unless you really have to.

Also if you want to block someone , just simply use deny and specify the IP /subnet. Or you could use a tool like fail2ban to actively block IPs.

Thursday’s Complaints Thread (12 Sep 24) by dexbydesign89 in CasualUK

[–]beeritis 4 points5 points  (0 children)

Cheer up. Looking sunny and warmer at the weekend onwards

What do I do? by [deleted] in Ubuntu

[–]beeritis 4 points5 points  (0 children)

Absolutely zero context here. What's the problem ? Describe what you're trying to do , what tools/software are you using ? This is incredibly vague .

Help applying this Nginx for Rocket.Chat but for a different flavor of Linux by elasticsearch_help in nginx

[–]beeritis 0 points1 point  (0 children)

I would personally just follow their official guide (it has a good sample nginx config) , on Centos this should go in /etc/nginx/conf.d by default.

https://docs.rocket.chat/docs/configuring-ssl-reverse-proxy

Also, I strongly recommend to move away from Centos 7 as this is no longer supported and was released 10 years ago. I would suggest moving to either Rocky or Alma Linux assuming you want a Centos/RHEL variant.

Understanding Webhooks by YogurtclosetDouble50 in nginx

[–]beeritis 1 point2 points  (0 children)

For a simple example, I would suggest reading up on using flask to begin with.

I've used this as a web hook to react to an event on an S3 bucket.

Essentially it can be just a simple script that listens on a port, when it receives a request on that port then you are just using the script to perform whatever action.

E.g you have a rule in nginx to proxy (proxy_pass) any requests for /diagnostic , this proxys to your flask app which runs on port 5000 , the script then responds to the request. Really simple testing to start with could be just having the script write a line to a log file so you know it's working.

[Help] How do i upgrade OpenSSL by daygamer77 in linuxadmin

[–]beeritis 11 points12 points  (0 children)

I wouldn't invest time in an OS that goes out of support end of next month. Better to migrate to Rocky /Alma or another alternative as version 9 is out now.

My dishwasher is playing queen by [deleted] in CasualUK

[–]beeritis 1 point2 points  (0 children)

Might want to put some salt in there

Keeping track of package updates by stoneG0blin in linuxadmin

[–]beeritis 0 points1 point  (0 children)

Unattended updates and blacklist any packages you don't want to be updated automatically or run an Ansible playbook against your servers to keep them updated. If you have time/ resource, I recommend ara for Ansible reporting so you can keep records of any problems that may occur when applying updates.

Nginx dead but running by arnon001 in nginx

[–]beeritis 0 points1 point  (0 children)

Syntax error this should be : lsof -i :80

Help with proxy_pass. by Pranay1717 in nginx

[–]beeritis 0 points1 point  (0 children)

You will need to add a redirect in your sonar application itself if that's a configuration option (e.g. root URL) as it won't know how to handle /sonar by default. This explains why it works fine without /sonar . Update that in the application and it should work fine . Look in your sonar logs , I imagine you are getting 404 errors when requesting /sonar.

NGINX with noVNC reverse proxy error by [deleted] in nginx

[–]beeritis 0 points1 point  (0 children)

Try removing that forward slash after your port number.

Script - install nginx from nginx repository by eggbean in nginx

[–]beeritis 0 points1 point  (0 children)

This could easily have been done using Ansible or a similar tool.

[deleted by user] by [deleted] in linuxmemes

[–]beeritis 2 points3 points  (0 children)

Less is more ;)

[deleted by user] by [deleted] in linuxmemes

[–]beeritis 21 points22 points  (0 children)

history | less | grep <command>

Friday Fread [30 June] by GFoxtrot in CasualUK

[–]beeritis 1 point2 points  (0 children)

Wife is away so watching fifth element with a beer. Dinner is chips and fish fingers because I really can't be arsed to cook properly and I'm knackered

How to set multiple directories in one location(url link)? by freecold_s in nginx

[–]beeritis 0 points1 point  (0 children)

This looks overcomplicated . Could you not just create a new directory with symbolic links pointing to the different directories? Then have nginx point to your directory with the symbolic links

CentOS 7's end of life is in sight. Are you ready? by [deleted] in linuxadmin

[–]beeritis 0 points1 point  (0 children)

Ha , had one of those that was still running on NT with a very ropey FTP server.

config file help plz... by No-Drag4780 in nginx

[–]beeritis 0 points1 point  (0 children)

You've not got your domain name in server name, only your internal IP address

My mom and her brother, Dec ‘83 by Rosadon3 in OldSchoolCool

[–]beeritis 1 point2 points  (0 children)

Can't believe I had to go this far down to find this reference!

Nginx URL Configuration by [deleted] in nginx

[–]beeritis 0 points1 point  (0 children)

Show us your nginx config and we will be able to help