Add more configs
This commit is contained in:
parent
58328a42d5
commit
03ab6ee918
5 changed files with 60 additions and 1 deletions
3
.vimrc
Normal file
3
.vimrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
31
beszel.sh
Executable file
31
beszel.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
sudo mkdir -p /srv/beszel
|
||||
sudo mkdir -p /run/beszel_socket
|
||||
sudo chown $(whoami):$(whoami) /srv/beszel
|
||||
sudo chown $(whoami):$(whoami) /run/beszel_socket
|
||||
|
||||
# https://beszel.dev/guide/getting-started
|
||||
# https://beszel.dev/guide/hub-installation
|
||||
podman run -d \
|
||||
--name beszel \
|
||||
--restart=unless-stopped \
|
||||
-v /srv/beszel:/beszel_data \
|
||||
-v /run/beszel_socket:/beszel_socket \
|
||||
-p 8090:8090 \
|
||||
docker.io/henrygd/beszel
|
||||
|
||||
# https://beszel.dev/guide/agent-installation
|
||||
read -p "Agent public key: " pub_key
|
||||
podman run -d \
|
||||
--name beszel-agent \
|
||||
--userns=keep-id \
|
||||
--network host \
|
||||
--restart unless-stopped \
|
||||
-v $XDG_RUNTIME_DIR/podman/podman.sock:$XDG_RUNTIME_DIR/podman/podman.sock:ro \
|
||||
-v /run/beszel_socket:/beszel_socket \
|
||||
-e KEY="$pub_key" \
|
||||
-e LISTEN=/beszel_socket/beszel.sock \
|
||||
docker.io/henrygd/beszel-agent:latest
|
6
containers/storage.conf
Normal file
6
containers/storage.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
[storage]
|
||||
driver = "overlay"
|
||||
|
||||
[storage.options.overlay]
|
||||
mount_program = "/usr/bin/fuse-overlayfs"
|
||||
mountopt = "noacl"
|
7
nginx.sh
7
nginx.sh
|
@ -2,4 +2,9 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
sudo apt install -y nginx
|
||||
sudo apt install -y nginx certbot python3-certbot-nginx
|
||||
|
||||
sudo systemctl status certbot.timer
|
||||
|
||||
# sudo certbot --nginx -d example.com
|
||||
|
||||
|
|
14
zfs.sh
Executable file
14
zfs.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
root_set=$(sudo zfs list -Ho name /)
|
||||
|
||||
# danger zone
|
||||
mv "$HOME" "$HOME-backup"
|
||||
sudo zfs create -p "$root_set$HOME"
|
||||
sudo zfs allow $(whoami) mount,create,rollback,snapshot "$root_set$HOME"
|
||||
rsync -aAX "$HOME-backup" "$HOME"
|
||||
|
||||
sudo zfs create -p "$root_set/srv/beszel"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue