-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] invoke app command
Houzuo Guo edited this page Oct 14, 2020
·
2 revisions
Hosted by laitos web server, the form offers a text field to submit app commands and displays the response.
- Under JSON key
HTTPHandlers
, write a string property calledCommandFormEndpoint
, value being the URL location that will serve the form. Keep the location a secret to yourself and make it difficult to guess. - Follow command processor to construct configuration for
JSON key
HTTPFilters
.
Here is an example:
{ ... "HTTPHandlers": { ... "CommandFormEndpoint": "/very-secret-invoke-app-command", ... }, ... }
The form is hosted by web server, therefore remember to run web server.
In a web browser, navigate to CommandFormEndpoint
of laitos web server.
Enter password and app command into the text box, click "Exec" button and observe the app response.
- Make the URL location secure and hard to guess, it helps to secure this web service beyond password protection!
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps