More actions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
|{{ic|fail2ban-client unban nginx-bad-request <banned ip>}} | |{{ic|fail2ban-client unban nginx-bad-request <banned ip>}} | ||
| | | | ||
|- | |||
|<nowiki>{{ic|systemd.services.<service name>.serviceConfig.LoadCredential = [ "<file name>:<path to file>" ];}}</nowiki> | |||
|Load credential with systemd. Example: | |||
<nowiki>{{ic|systemd.services.tiddlywiki.serviceConfig.LoadCredential = [ "credentials.csv:/var/trust/tiddlywiki/credentials.csv" ];}}</nowiki> | |||
|} | |} |
Revision as of 22:42, 23 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>
|
|
{{ic|systemd.services.<service name>.serviceConfig.LoadCredential = [ "<file name>:<path to file>" ];}} | Load credential with systemd. Example:
{{ic|systemd.services.tiddlywiki.serviceConfig.LoadCredential = [ "credentials.csv:/var/trust/tiddlywiki/credentials.csv" ];}} |