Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active February 24, 2024 11:00
Show Gist options
  • Save sokil/57573e90d6138547bd9c33af4cb01ce8 to your computer and use it in GitHub Desktop.
Save sokil/57573e90d6138547bd9c33af4cb01ce8 to your computer and use it in GitHub Desktop.
Nginx Unit Control Api
# Set new
curl -XPUT --unix-socket /var/run/control.unit.sock http://localhost/config/applications/app/processes -d 100
# Read current
curl --unix-socket /var/run/control.unit.sock http://localhost/config/applications/app/processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment