46 lines
1.5 KiB
Desktop File
46 lines
1.5 KiB
Desktop File
[Unit]
|
|
Description=AIOS external GPT read-only Online Task ingress
|
|
After=network.target aios-chatgpt-bridge-v2-staging.service aios-agent-task-api.service
|
|
Wants=aios-chatgpt-bridge-v2-staging.service aios-agent-task-api.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
DynamicUser=yes
|
|
StateDirectory=aios-gpt-online-task-ingress
|
|
StateDirectoryMode=0750
|
|
LoadCredential=gpt_ingress_token:/etc/aios-gitops/gpt-online-task-ingress.token
|
|
LoadCredential=agent_task_control_token:/etc/aios-gitops/agent-task-control.token
|
|
Environment=AIOS_GPT_INGRESS_TOKEN_FILE=%d/gpt_ingress_token
|
|
Environment=AIOS_AGENT_TASK_CONTROL_TOKEN_FILE=%d/agent_task_control_token
|
|
Environment=AIOS_GPT_INGRESS_STATE_ROOT=%S/aios-gpt-online-task-ingress
|
|
Environment=AIOS_GPT_INGRESS_HOST=127.0.0.1
|
|
Environment=AIOS_GPT_INGRESS_PORT=18945
|
|
Environment=AIOS_GOVERNED_WRITE_API_URL=http://127.0.0.1:18892
|
|
Environment=AIOS_AGENT_TASK_API_URL=http://127.0.0.1:18940
|
|
ExecStart=/usr/bin/python3 -B /opt/aios/current/active-runtime/app/aios_gpt_online_task_ingress.py
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectClock=yes
|
|
LockPersonality=yes
|
|
RestrictSUIDSGID=yes
|
|
RestrictRealtime=yes
|
|
RestrictNamespaces=yes
|
|
MemoryDenyWriteExecute=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_INET
|
|
IPAddressDeny=any
|
|
IPAddressAllow=127.0.0.0/8
|
|
InaccessiblePaths=/data/aios-gitops /etc/aios-gitops /home
|
|
UMask=0077
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|