-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaterialgraph.service
More file actions
36 lines (34 loc) · 1002 Bytes
/
Copy pathmaterialgraph.service
File metadata and controls
36 lines (34 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[Unit]
Description=MaterialGraph FastAPI service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=materialgraph
Group=materialgraph
WorkingDirectory=/opt/materialgraph
EnvironmentFile=/etc/materialgraph/runtime.env
Environment=MATERIALGRAPH_ENV_FILE=
ExecStartPre=/opt/materialgraph/.venv/bin/python /opt/materialgraph/scripts/verify_secret_file.py --owner-uid 0 --mode 0640 /etc/materialgraph/runtime.env
ExecStart=/opt/materialgraph/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000
Restart=on-failure
RestartSec=5
LogRateLimitIntervalSec=30s
LogRateLimitBurst=200
UMask=0077
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictSUIDSGID=true
CapabilityBoundingSet=
AmbientCapabilities=
LockPersonality=true
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target