2016-02-12 13:22:33 -06:00
|
|
|
[Unit]
|
2020-03-29 14:54:36 +01:00
|
|
|
Description=oauth2-proxy daemon service
|
2024-10-13 21:00:54 +03:00
|
|
|
After=network.target network-online.target nss-lookup.target basic.target
|
|
|
|
Wants=network-online.target nss-lookup.target
|
|
|
|
StartLimitIntervalSec=30
|
|
|
|
StartLimitBurst=3
|
2016-02-12 13:22:33 -06:00
|
|
|
|
|
|
|
[Service]
|
2024-10-13 21:00:54 +03:00
|
|
|
User=oauth2-proxy
|
|
|
|
Group=oauth2-proxy
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=30
|
|
|
|
WorkingDirectory=/etc/oauth2-proxy
|
|
|
|
ExecStart=/usr/bin/oauth2-proxy --config=/etc/oauth2-proxy/oauth2-proxy.cfg
|
2016-02-12 13:22:33 -06:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2024-10-13 21:00:54 +03:00
|
|
|
LimitNOFILE=65535
|
|
|
|
NoNewPrivileges=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
LockPersonality=true
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateTmp=true
|
|
|
|
CapabilityBoundingSet=
|
2016-02-12 13:22:33 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|