mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
grant traefik write access to state/acme.json
and ensure the file exists and is private before launching
This commit is contained in:
@@ -7,13 +7,14 @@ After=network.target
|
||||
[Service]
|
||||
User=root
|
||||
Restart=always
|
||||
# process only needs to write acme.json file, no other files
|
||||
# process only needs to write state/acme.json file, no other files
|
||||
ProtectHome=tmpfs
|
||||
ProtectSystem=strict
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectKernelModules=yes
|
||||
ReadWritePaths={install_prefix}/state/acme.json
|
||||
WorkingDirectory={install_prefix}/state
|
||||
ExecStart={install_prefix}/hub/bin/traefik \
|
||||
-c {install_prefix}/state/traefik.toml
|
||||
|
||||
Reference in New Issue
Block a user