More actions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
!Command | !Command | ||
!Description | !Description | ||
|- | |- | ||
|{{ic|nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps}} | |{{ic|nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps}} | ||
|Deploy server | |Deploy server | ||
Use {{ic|--build-host root@posixlycorrect.com}} to compile inside the vps | |||
|- | |- | ||
|{{ic|sudo -u postgres psql}} | |{{ic|sudo -u postgres psql}} | ||
| | | | ||
|- | |- | ||
|{{ic|sudo ss -tpn}} | |{{ic|sudo ss -tpn}} | ||
|Check current connections | |Check current connections | ||
|- | |- | ||
|{{ic|nix flake lock --commit-lock-file --update-input homepage}} | |{{ic|nix flake lock --commit-lock-file --update-input homepage}} | ||
|Deploy homepage | |Deploy homepage | ||
|- | |- | ||
|{{ic|fail2ban-client unban nginx-bad-request <banned ip>}} | |{{ic|fail2ban-client unban nginx-bad-request <banned ip>}} | ||
| | | | ||
|} | |} |
Revision as of 03:55, 13 August 2024
This is a simple list of useful commands for use in the VPS. Some of the commands are self-explanatory and no description is needed.
Command | Description |
---|---|
nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps
|
Deploy server
Use |
sudo -u postgres psql
|
|
sudo ss -tpn
|
Check current connections |
nix flake lock --commit-lock-file --update-input homepage
|
Deploy homepage |
fail2ban-client unban nginx-bad-request <banned ip>
|