This commit introduces a new option for the Opencode web service to allow configuring an environment file so that we can safely specify an `OPENCODE_SERVER_PASSWORD` environment variable to secure access to the service without exposing the secret to the Nix store.
12 lines
214 B
Desktop File
12 lines
214 B
Desktop File
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/run/secrets/opencode
|
|
ExecStart=@opencode@/bin/opencode serve
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Unit]
|
|
After=network.target
|
|
Description=OpenCode Web Service
|