Compare commits

..

2 commits

Author SHA1 Message Date
jgrogan
7eeed4e435 Add forgejo notes 2024-08-26 15:58:38 +01:00
jgrogan
2f446dc749 Add hosting fixes 2024-08-26 15:56:25 +01:00
3 changed files with 19 additions and 7 deletions

9
doc/forgejo.md Normal file
View file

@ -0,0 +1,9 @@
# Further Reading #
* Admin guide: https://forgejo.org/docs/latest/admin/
* Arch notes: https://wiki.archlinux.org/title/Forgejo

0
doc/hosting_notes.md Normal file
View file

View file

@ -1,9 +1,5 @@
export MY_USER="my_user"
# Create non-root user
adduser $MY_USER
usermod -aG sudo $MY_USER
# Set up firewall
ufw allow OpenSSH
ufw enable
@ -14,10 +10,17 @@ ufw enable
# PasswordAuthentication no
# ChallengeResponseAuthentication no
# UsePAM no
# sudo systemctl restart ssh
# Create non-root user
adduser $MY_USER
usermod -aG sudo $MY_USER
# Enable ssh login
rsync --archive --chown=$MY_USER:$MY_USER ~/.ssh /home/$MY_USER
rsync --archive --chown=$MY_USER:$MY_USER ~/.ssh /home/$MY_USER/.ssh
# Fail2ban for SSH
apt install fail2ban
# Restart ssh
sudo systemctl restart ssh