v0.1.0
This commit is contained in:
commit
fa432bebda
189 files changed
+26219
No files matched your search
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Update EasyDNS block lists
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=easydns
|
||||
EnvironmentFile=-/etc/easydns/easydns.env
|
||||
ExecStart=/usr/bin/easydns blocklists update --config /etc/easydns/config.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Daily EasyDNS block list update
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=1h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,52 @@
|
||||
[Unit]
|
||||
Description=EasyDNS server
|
||||
Documentation=https://example.invalid/easydns/docs
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=easydns
|
||||
Group=easydns
|
||||
ExecStartPre=/usr/bin/easydns check-config --config /etc/easydns/config.yaml
|
||||
ExecStart=/usr/bin/easydns run --config /etc/easydns/config.yaml
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=2s
|
||||
EnvironmentFile=-/etc/easydns/easydns.env
|
||||
StateDirectory=easydns
|
||||
StateDirectoryMode=0750
|
||||
ConfigurationDirectory=easydns
|
||||
LimitNOFILE=65536
|
||||
TasksMax=4096
|
||||
|
||||
# Bind to port 53 without root
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
NoNewPrivileges=yes
|
||||
|
||||
# Sandbox
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelLogs=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectClock=yes
|
||||
ProtectHostname=yes
|
||||
RestrictNamespaces=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictSUIDSGID=yes
|
||||
LockPersonality=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@privileged @resources
|
||||
UMask=0027
|
||||
ReadWritePaths=/etc/easydns/data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
u easydns - "EasyDNS server" /etc/easydns/data /usr/sbin/nologin
|
||||
Reference in new issue
Block a user