20 lines
687 B
Desktop File
Executable File
20 lines
687 B
Desktop File
Executable File
[Unit]
|
|
Description=proxdomain: assign domains to new Proxmox guests
|
|
Documentation=file:///opt/proxdomain/README.md
|
|
After=network-online.target pve-cluster.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# Secrets live here, not in the config file:
|
|
# PROXDOMAIN_PVE_TOKEN=...
|
|
# PROXDOMAIN_CF_TOKEN=...
|
|
EnvironmentFile=-/etc/proxdomain/env
|
|
Environment=PROXDOMAIN_CONFIG=/etc/proxdomain/config.toml
|
|
ExecStart=/usr/local/bin/proxdomain watch --once --auto-assign
|
|
# The service only talks to the PVE API and local nginx; it needs no home.
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ReadWritePaths=/etc/nginx/conf.d/proxdomain.d /var/lib/proxdomain /var/www/certbot
|