More actions
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 | Notes |
---|---|---|
nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps | Deploy server | Use --build-host root@posixlycorrect.com to compile in the vps |
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> |