feat(codex-oauth-proxy): package private-state user service
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Codex OAuth proxy
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=@out@/bin/codex-oauth-proxy --creds-store=auto --creds-path=%S/codex-oauth-proxy/auth.json
|
||||||
|
StateDirectory=codex-oauth-proxy
|
||||||
|
StateDirectoryMode=0700
|
||||||
|
UMask=0077
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
StandardOutput=null
|
||||||
|
StandardError=null
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
@@ -55,6 +55,13 @@ buildGoModule rec {
|
|||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm644 ${./codex-oauth-proxy.service} \
|
||||||
|
"$out/lib/systemd/user/codex-oauth-proxy.service"
|
||||||
|
substituteInPlace "$out/lib/systemd/user/codex-oauth-proxy.service" \
|
||||||
|
--replace-fail '@out@' "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
category = "AI LLM Gateway";
|
category = "AI LLM Gateway";
|
||||||
updateScript = [
|
updateScript = [
|
||||||
|
|||||||
Reference in New Issue
Block a user