Init: bootstrap package
All checks were successful
Build package / build-package (push) Successful in 6s
All checks were successful
Build package / build-package (push) Successful in 6s
This commit is contained in:
15
.gitea/workflows/build.yml
Normal file
15
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Build package
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-package:
|
||||
runs-on: pkgbuilder
|
||||
env:
|
||||
steps:
|
||||
- name: Build and push package
|
||||
uses: https://gitea.konchin.com/action/archbuild@main
|
||||
with:
|
||||
minio-accesskey: ${{ secrets.MINIO_ACCESSKEY }}
|
||||
minio-secretkey: ${{ secrets.MINIO_SECRETKEY }}
|
||||
gpg-password: ${{ secrets.GPG_PASSWORD }}
|
||||
gpg-keygrip: ${{ secrets.GPG_KEYGRIP }}
|
||||
25
PKGBUILD
Normal file
25
PKGBUILD
Normal file
@@ -0,0 +1,25 @@
|
||||
# Maintainer: Yi-Ting Shih <ytshih@konchin.com>
|
||||
pkgname=hl-workstation-env
|
||||
pkgver=0.0.1
|
||||
pkgrel=1
|
||||
pkgdesc="Workstation environment for konchin.com homelab"
|
||||
arch=(any)
|
||||
url="https://gitea.konchin.com/package/hl-workstation-env"
|
||||
license=('0BSD')
|
||||
depends=(
|
||||
'fail2ban'
|
||||
)
|
||||
install="$pkgname.install"
|
||||
source=(
|
||||
'jail.local'
|
||||
'ssh-jail.local'
|
||||
)
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
|
||||
install -Dm644 'jail.local' "$pkgdir/etc/fail2ban/jail.local"
|
||||
install -Dm644 'ssh-jail.local' "$pkgdir/etc/fail2ban/jail.d/ssh-jail.local"
|
||||
}
|
||||
sha256sums=('654de70aeeae86e663454cd7bd68dacab1b99cb386b5c587140a37f6596509a5'
|
||||
'68b256ad918cdd6c088f24f2413867e34313e755611be5ef7a0105b985b28bea')
|
||||
7
hl-workstation-env.install
Normal file
7
hl-workstation-env.install
Normal file
@@ -0,0 +1,7 @@
|
||||
post_install() {
|
||||
systemctl restart fail2ban.service || true
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
systemctl restart fail2ban.service || true
|
||||
}
|
||||
10
jail.local
Normal file
10
jail.local
Normal file
@@ -0,0 +1,10 @@
|
||||
[DEFAULT]
|
||||
|
||||
ignoreip = 127.0.0.0/8 172.20.0.0/16 140.113.168.105/32
|
||||
banaction = nftables
|
||||
banaction_allports = nftables[type=allports]
|
||||
bantime.increment = true
|
||||
backend = systemd
|
||||
maxretry = 3
|
||||
findtime = 5m
|
||||
bantime = 30d
|
||||
3
ssh-jail.local
Normal file
3
ssh-jail.local
Normal file
@@ -0,0 +1,3 @@
|
||||
[sshd]
|
||||
enabled = true
|
||||
filter = sshd
|
||||
Reference in New Issue
Block a user