diff --git a/README.md b/README.md index c93e7c5..6cad201 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Install scripts are JSON configurations that automate app deployment on HexOS | [MKVToolNix](mkvtoolnix.json) | A set of tools to create, alter and inspect Matroska files | | [Navidrome](navidrome.json) | Music server and streamer | | [Nextcloud](nextcloud.json) | File sync and collaboration | +| [NZBGet](nzbget.json) | Efficient usenet downloader | | [PairDrop](pairdrop.json) | Transfer files cross-clatform | | [Palworld Server](palworld.json) | Creates a Multiplayer Palworld Server | | [Paperless-ngx](paperless-ngx.json) | Document management system | diff --git a/nzbget.json b/nzbget.json new file mode 100644 index 0000000..8d940b8 --- /dev/null +++ b/nzbget.json @@ -0,0 +1,84 @@ +{ + "version": 5, + "script": { + "version": "1.0.0", + "changeLog": "Initial release" + }, + "installation_questions": [ + { + "question": "Choose a username", + "type": "text", + "key": "NZBGET_USER", + "required": true, + "default": "Admin", + "installonly": true + }, + { + "question": "Input an account password", + "type": "password", + "key": "NZBGET_PASS", + "required": true, + "default": "$RANDOM_STRING(16)", + "installonly": true + } + ], + "requirements": { + "locations": [ + "ApplicationsPerformance", + "Downloads" + ], + "specifications": [ + "1CORE", + "100MB", + "1GBRAM" + ], + "permissions": [ + "READ_WRITE_LOCATIONS" + ], + "ports": [ + 6789 + ] + }, + "ensure_directories_exists": [ + { + "path": "$LOCATION(ApplicationsPerformance)" + }, + { + "path": "$LOCATION(Downloads)", + "network_share": true + }, + { + "path": "$LOCATION(Downloads)/nzbget" + }, + { + "path": "$LOCATION(ApplicationsPerformance)/nzbget/config", + "snapshot": { + "id": "config" + } + } + ], + "app_values": { + "nzbget": { + "additional_envs": [ + { + "name": "NZBGET_USER", + "value": "$QUESTION(NZBGET_USER)" + }, + { + "name": "NZBGET_PASS", + "value": "$QUESTION(NZBGET_PASS)" + } + ] + }, + "storage": { + "config": "$HOST_PATH($LOCATION(ApplicationsPerformance)/nzbget/config)", + "downloads": "$HOST_PATH($LOCATION(Downloads)/nzbget)" + } + }, + "resources": { + "limits": { + "cpus": 2, + "memory": "$MEMORY(5%, 1024)" + } + } +}