Some fixes and additions

This commit is contained in:
mic0 2025-11-18 15:07:21 +01:00
parent de8c29591b
commit 621e43ab57
No known key found for this signature in database
GPG Key ID: BE627E39EE3FE70C
3 changed files with 26 additions and 4 deletions

View File

@ -1,11 +1,13 @@
# Guide for systems / infra maintanance and creation # Guide for systems / infra maintanance and creation
This guide is assuming you are setting up or maintaining an AlmaLinux (9, 10) server. This guide encapsulates my experience of wrangling servers and provides good defaults and recipes on how to run shit that wont ever brake down so you can focus on more important things.
It assumes you are setting up or maintaining an AlmaLinux (9, 10) server.
It guides you from setting up a fresh machine, to installing build dependencies, configuring the firewall, serving and monitoring your apps and lastly protecting them from DDOS. It guides you from setting up a fresh machine, to installing build dependencies, configuring the firewall, serving and monitoring your apps and lastly protecting them from DDOS.
## [Setting up a new machine](setup.md) ## [Setting up a new machine](setup.md)
Prepare a new machine for use with an `admin` user. Lock out everything but to it. Prepare a new machine for use with an `admin` user. Lock out everything but SSH to it.
## [Installing aplications and build tools](applications.md) ## [Installing aplications and build tools](applications.md)
@ -14,7 +16,8 @@ Set up your apps in `/srv/` partition.
## [Firewall (opening/checking ports)](firewall.md) ## [Firewall (opening/checking ports)](firewall.md)
How to open firewall to let outside traffic to your apps. How to open firewall to let outside traffic to your apps. How to check and set firewall zones.
If your service is timing out (nothing gets thru) this is probably the answer.
## [Running services and logging with systemd](systemd.md) ## [Running services and logging with systemd](systemd.md)

View File

@ -42,7 +42,7 @@ sudo firewall-cmd --zone=public --list-ports
Change the default zone to `public` with Change the default zone to `public` with
```sh ```sh
sudo firewall-cmd --permanent --zone=public sudo firewall-cmd --set-default-zone=public
``` ```
Then open the relevant ports and reload the firewall Then open the relevant ports and reload the firewall

View File

@ -85,3 +85,22 @@ server {
} }
``` ```
Test and reload nginx by:
```sh
# Test configuration
sudo nginx -t
# Reload nginx
sudo systemctl reload nginx
```
## Deleting Certbot certificates
```sh
# List your certificates
sudo certbot certificates
# Delete by name
sudo certbot delete --cert-name sub.domain.com
```