u/Beautiful-Log5632

▲ 5 r/nginx

New recommendations for config settings?

There are a lot of blogs that have recommendations about config file settings to use for SSL, security headers and performance tweaking but most of them are very outdated. Do you know some good blogs that's up to date for new recommendations?

reddit.com
u/Beautiful-Log5632 — 1 day ago

Opening tab in a container from the command line

Can I open a tab in a container from the firefox command line or will tabs always open in the default container?

reddit.com
u/Beautiful-Log5632 — 1 day ago

Update blocked ips in nftables

Can I use the nft command to update the list of blocked ips? I have lists of ips that I need to add and remove from a blocked list but I want to automate it instead of changing nftables.conf.

I was using define to make a variable with a list of ips. Can nft add and remove from this list or are there other ways to automate it?

reddit.com
u/Beautiful-Log5632 — 1 day ago

Login with password

I get assigned machines with a temporary root password so the first thing I do is ssh in and create a usr1 user I'll use to do all the setup work. I set up usr1 with sudo so it can do what root can. I have to manually set up all the authentication such as deleting the password for root and setting up ssh keys for usr1.

And then I can run it like this from my computer:

ansible-playbook play.yml

I run that as the usr1 user on my computer so it uses the same usr1 user on the machine. By default tasks will run as usr1 but if a task has become: yes it runs as root.

But it takes too long to set up all the authentication for the first time manually so I want to try it from ansible. I want to make ansible-playbook run as usr1 like it always does but instead of logging in through ssh using ssh keys for usr1, it should use temporary ssh password for root user.

I tried this but it is running tasks without become: yes as root but it should as usr1. Is there a better way?

ansible-playbook play.yml --extra-vars "ansible_user=root ansible_password=temporarysshpassword become_user=usr1"

I tried --ssh-extra-args but I don't know what the proper syntax is.

reddit.com
u/Beautiful-Log5632 — 2 days ago

Gestures in linux

In linux wayland 2 finger left and right gestures are working to go forwards and backwards in history. How can I enable more of them like gestures for closing a tab, undoing last closed tab and switching tabs? Which gesture configs can I change in about:config?

reddit.com
u/Beautiful-Log5632 — 8 days ago