Compare commits
4 Commits
master
..
02a625d34a
| Author | SHA1 | Date | |
|---|---|---|---|
| 02a625d34a | |||
| cc20f9bbbc | |||
| a0f475fa00 | |||
| 65bd2a290b |
@@ -1,9 +1,17 @@
|
|||||||
www.objectbrokers.com {
|
# Serve PXE assets over plain HTTP on port 80
|
||||||
reverse_proxy localhost:8084
|
http://192.168.88.231:80 {
|
||||||
|
# Set the root directory where your PXE files live
|
||||||
|
root * /srv/pxe
|
||||||
|
|
||||||
|
# enable static file serving
|
||||||
|
file_server
|
||||||
|
|
||||||
|
# Enable directory browsing for easier manual debugging in a browser
|
||||||
|
file_server browse
|
||||||
}
|
}
|
||||||
|
|
||||||
teal.objectbrokers.com {
|
www.objectbrokers.com {
|
||||||
respond "Caddy here."
|
reverse_proxy localhost:8084
|
||||||
}
|
}
|
||||||
|
|
||||||
cockpit.objectbrokers.com {
|
cockpit.objectbrokers.com {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# Envvars below will override those in _global.env.sh if present.
|
# Envvars below will override those in _global.env.sh if present.
|
||||||
|
|
||||||
export RESTIC_REPOSITORY="sftp:sftpuser@cygnus.objectbrokers.com:/Backup/restic/teal" # *EDIT* fill with your repo name
|
export RESTIC_REPOSITORY="sftp:sftpuser@Cygnus:/Backup/restic/teal" # *EDIT* fill with your repo name
|
||||||
|
|
||||||
# What to backup. Colon-separated paths e.g. to different mountpoints "/home:/mnt/usb_disk".
|
# What to backup. Colon-separated paths e.g. to different mountpoints "/home:/mnt/usb_disk".
|
||||||
# To backup only your home directory, set "/home/your-user"
|
# To backup only your home directory, set "/home/your-user"
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
|
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
|
||||||
# Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
|
# Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
|
||||||
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
|
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
|
||||||
#DNS=192.168.88.231 192.168.88.40
|
DNS=192.168.88.231 192.168.88.40
|
||||||
#Domains=~objectbrokers.com
|
Domains=~objectbrokers.com
|
||||||
#DNSSEC=no
|
#DNSSEC=no
|
||||||
#DNSOverTLS=no
|
#DNSOverTLS=no
|
||||||
#MulticastDNS=no
|
#MulticastDNS=no
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Backup with restic to Backblaze B2
|
|
||||||
# Email on failure require special setup. See README.md
|
|
||||||
#OnFailure=status-email-user@%n.service
|
|
||||||
# Prevent backup on unmetered connection. Needs special setup. See README.md.
|
|
||||||
#Requires=nm-unmetered-connection.service
|
|
||||||
#After=nm-unmetered-connection.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Nice=10
|
|
||||||
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
|
|
||||||
Environment="HOME=/root"
|
|
||||||
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
|
|
||||||
# Random sleep (in seconds): in the case of multiple backup profiles. Many restic instances started at the same time could case high load or network bandwith usage.
|
|
||||||
# `systemd-cat` allows showing the restic output to the systemd journal
|
|
||||||
ExecStart=/bin/bash -c 'set -o pipefail; ps cax | grep -q restic && sleep $(shuf -i 0-300 -n 1); source /etc/restic/%I.env.sh && /bin/restic_backup.sh 2>&1 | systemd-cat'
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Backup with restic on schedule
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=daily
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Check restic backup Backblaze B2 for errors
|
|
||||||
# Email on failure require special setup. See README.md
|
|
||||||
#OnFailure=status-email-user@%n.service
|
|
||||||
Conflicts=restic-backup.service
|
|
||||||
# Prevent backup on unmetered connection. Needs special setup. See README.md.
|
|
||||||
#Requires=nm-unmetered-connection.service
|
|
||||||
#After=nm-unmetered-connection.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Nice=10
|
|
||||||
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
|
|
||||||
# `systemd-cat`: allows showing the restic output to the systemd journal
|
|
||||||
ExecStart=/bin/bash -c 'set -o pipefail; source /etc/restic/%I.env.sh && /bin/restic_check.sh 2>&1 | systemd-cat'
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Check restic backup Backblaze B2 for errors on a schedule
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=monthly
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -27,22 +27,16 @@
|
|||||||
private-address: 100.64.0.0/10
|
private-address: 100.64.0.0/10
|
||||||
|
|
||||||
# addresses from the IP range that are allowed to connect to the resolver
|
# addresses from the IP range that are allowed to connect to the resolver
|
||||||
# local physical LAN
|
|
||||||
access-control: 192.168.88.0/24 allow
|
access-control: 192.168.88.0/24 allow
|
||||||
# explicitly allow localhost access
|
# explicitly allow localhost access
|
||||||
access-control: 127.0.0.0/8 allow
|
access-control: 127.0.0.0/8 allow
|
||||||
# allow Tailnet
|
# allow Tailnet
|
||||||
access-control: 100.64.0.0/10 allow
|
access-control: 100.64.0.0/10 allow
|
||||||
# Docker bridge networks (default pool)
|
|
||||||
access-control: 172.16.0.0/12 allow
|
|
||||||
access-control: 192.168.0.0/16 allow
|
|
||||||
# uncomment the following line to allow Tailnet IPv6
|
# uncomment the following line to allow Tailnet IPv6
|
||||||
# access-control: fd7a:115c:a1e0::/48 allow
|
# access-control: fd7a:115c:a1e0::/48 allow
|
||||||
|
|
||||||
access-control-view: 192.168.88.0/24 lan
|
access-control-view: 192.168.88.0/24 lan
|
||||||
access-control-view: 100.64.0.0/10 tailnet
|
access-control-view: 100.64.0.0/10 tailnet
|
||||||
access-control-view: 172.16.0.0/12 lan
|
|
||||||
access-control-view: 192.168.0.0/16 lan
|
|
||||||
access-control-view: 127.0.0.0/8 lan
|
access-control-view: 127.0.0.0/8 lan
|
||||||
|
|
||||||
do-ip4: yes
|
do-ip4: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user