24 lines
670 B
Markdown
24 lines
670 B
Markdown
# Example NFQUEUE Scripts
|
|
|
|
Files in this folder are treated as protected example scripts by the API:
|
|
|
|
- `*.py`: script source
|
|
- `*-requirements.txt`: optional pip requirements copied and installed into the script venv
|
|
- `*.deploy.json`: optional deployment settings for startup auto-deploy
|
|
|
|
Protected behavior:
|
|
|
|
- scripts are synced from this folder into `/srv/fw-scripts` on backend startup
|
|
- scripts in this folder cannot be overwritten, edited, or deleted via the API
|
|
- scripts with a deploy config containing `qnum` are auto-started as systemd services
|
|
|
|
Example deploy file:
|
|
|
|
```json
|
|
{
|
|
"qnum": 1,
|
|
"enable_at_boot": true,
|
|
"extra_args": "--log-level INFO"
|
|
}
|
|
```
|