Install, configure, manage, validate, and inspect an Nginx web server
Source: target-root/usr/local/libexec/solidgroundux/console-modules/50-web-server.sh
Install, configure, manage, validate, and inspect an Nginx web server
Public functions
- Run Web Server preparation and synchronize child menu statuses
- Call
_web_run_managewith theinstallaction. - Call
_web_run_managewith thestartaction. - Call
_web_run_managewith theconfigure-rootaction. - Call
_web_run_managewith themanage-sitesaction. - Call
_web_run_managewith theconfigure-defaultaction. - Call
_web_run_publishwith thepublish-siteaction. - Call
_web_run_managewith theconfigure-documentationaction. - Call
_web_run_publishwith thepublish-documentationaction. - Call
_web_run_managewith thedocumentation-statusaction. - Call
_web_run_managewith theserviceaction. - Call
_web_run_managewith thefirewallaction. - Call
_web_run_managewith thevalidateaction. - Call
_web_run_managewith thestatusaction. - Validate the web server module and record its status for the console.
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_web_run_manage | Run the selected web-server action using the standalone web-server role manager. | — | — |
_web_run_publish | Run a web publication action using the standalone deployment manager. | — | — |
_web_record_prepare_step | Persist one child-step result in the console tracker. | - $1 ITEM_KEY | — |
Description
Registers Nginx host, site, publishing, documentation, service, validation, and status actions with the SolidGround Management Console. Persistent operations are implemented by manage-web-server.sh and publish-web-content.sh.
Module validation contract
Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable
Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.
