mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
26 lines
699 B
Desktop File
26 lines
699 B
Desktop File
# Template file for Traefik systemd service
|
|
# Uses simple string.format() for 'templating'
|
|
[Unit]
|
|
# Wait for network stack to be fully up before starting proxy
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=root
|
|
Restart=always
|
|
# traefik process should have no access to home directories
|
|
ProtectHome=yes
|
|
ProtectSystem=strict
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ReadWritePaths={install_prefix}/state/rules
|
|
ReadWritePaths={install_prefix}/state/acme.json
|
|
WorkingDirectory={install_prefix}/state
|
|
ExecStart={install_prefix}/hub/bin/traefik \
|
|
-c {install_prefix}/state/traefik.toml
|
|
|
|
[Install]
|
|
# Start service when system boots
|
|
WantedBy=multi-user.target
|