diff options
author | Shell Chen | 2023-11-03 16:02:21 +0800 |
---|---|---|
committer | Shell Chen | 2023-11-03 16:02:21 +0800 |
commit | 26c6972347ef5cd3b312ddc3f2ef1432d2c95734 (patch) | |
tree | 1d82730e03fe8d2541da53daeadf6d90b6729cf0 /openai-hubd.service | |
download | aur-26c6972347ef5cd3b312ddc3f2ef1432d2c95734.tar.gz |
Initial upload: openai-hub-git
Diffstat (limited to 'openai-hubd.service')
-rw-r--r-- | openai-hubd.service | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/openai-hubd.service b/openai-hubd.service new file mode 100644 index 000000000000..7917f4cb722d --- /dev/null +++ b/openai-hubd.service @@ -0,0 +1,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 |