summarylogtreecommitdiffstats
path: root/openai-hubd.service
blob: 7917f4cb722d0dd4508b7026d971609531406794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Unit]
Description=OpenAI Hub HTTP service
After=network.target

[Service]
Type=exec
DynamicUser=yes
LogsDirectory=openai-hub
StateDirectory=openai-hub
LoadCredential=config.toml:/etc/openai-hub/config.toml

ExecStart=/usr/bin/openai-hubd \
    --config ${CREDENTIALS_DIRECTORY}/config.toml \
    --acl /etc/openai-hub/acl.toml

PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelModules=true
ProtectControlGroups=true

[Install]
WantedBy=multi-user.target