Archived
1 parent
f5bdd7e21c
commit
affe28ad71
110 files changed
+52936
-14
No files matched your search
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Renew WGTools Let's Encrypt certificate
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/wgtools/.venv/bin/certbot renew --cert-name wgtools --quiet --deploy-hook /usr/local/libexec/wgtools-certbot-reload
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Check WGTools Let's Encrypt certificate renewal
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03,15:17:00
|
||||
RandomizedDelaySec=45m
|
||||
Persistent=true
|
||||
Unit=wgtools-certbot-renew.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=WGTools client expiration and access schedule enforcement
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/libexec/wgtools-helper expire_clients wg0
|
||||
StandardOutput=null
|
||||
StandardError=journal
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=WGTools client access policy timer
|
||||
|
||||
[Timer]
|
||||
OnBootSec=30s
|
||||
OnCalendar=*-*-* *:*:00
|
||||
AccuracySec=1s
|
||||
Persistent=true
|
||||
Unit=wgtools-expiry.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=WGTools Telegram Bot
|
||||
After=network-online.target wgtools.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/opt/wgtools
|
||||
EnvironmentFile=-/etc/wgtools/wgtools.env
|
||||
ExecStart=/opt/wgtools/.venv/bin/python -m app.telegram_bot
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=WGTools WireGuard Server Manager
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/opt/wgtools
|
||||
EnvironmentFile=-/etc/wgtools/wgtools.env
|
||||
EnvironmentFile=-/etc/wgtools/https.env
|
||||
ExecStart=/opt/wgtools/scripts/wgtools-web
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user