mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
* Exemples -> Examples * Exemples -> Examples * Uppercase * Uppercase v2 * Uppercase v3 * Uppercases * Another one * Add whoami because .gitignore is ignoring conf folder
32 lines
982 B
Desktop File
32 lines
982 B
Desktop File
[Unit]
|
|
Description=whoami web server
|
|
After=network-online.target
|
|
Wants=network-online.target systemd-networkd-wait-online.service
|
|
|
|
[Service]
|
|
Restart=on-abnormal
|
|
|
|
; User and group the process will run as.
|
|
User=whoami
|
|
Group=whoami
|
|
|
|
; Always set "-root" to something safe in case it gets forgotten in the traefikfile.
|
|
ExecStart=/usr/local/bin/whoami --port=9000
|
|
|
|
; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
|
|
LimitNOFILE=1048576
|
|
|
|
; Use private /tmp and /var/tmp, which are discarded after traefik stops.
|
|
PrivateTmp=true
|
|
; Use a minimal /dev (May bring additional security if switched to 'true', but it may not work on Raspberry Pi's or other devices, so it has been disabled in this dist.)
|
|
PrivateDevices=false
|
|
; Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
|
|
ProtectHome=true
|
|
; Make /usr, /boot, /etc and possibly some more folders read-only.
|
|
ProtectSystem=full
|
|
|
|
NoNewPrivileges=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|