Reference
web-service feature
What it doesPermalink to What it does#
A service on a loopback port, served by nginx under its own names, with its own locked account, state and logs.
Use itPermalink to Use it#
Import it from (vessel system features web-service). This part of a system configuration uses it:
Example: feature-web-service-example
(import (vessel system)
(vessel system features nginx)
(vessel system features certificates)
(vessel system features web-service))
;; An application on port 8400, served by nginx at its own name with a
;; certificate. The feature adds its account, service, virtual host and
;; certificate request.
(system-configuration
features:
(append
(list (nginx-feature)
(certificates-feature challenge: 'http-01
email: "[email protected]")
(web-service-feature argv: '("/run/current-system/profile/bin/notes-server")
uid: 400
gid: 400
port: 8400
server-names: '("notes.example.org")
name: "notes"))
%server-features))
Verified
A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.
OptionsPermalink to Options#
Pass these keyword fields directly to the feature type. The optional name: keyword sets the instance name; a copy keeps it unless changed.
Option | Default | Type | Description |
|---|---|---|---|
| required | not available | not available |
| required | not available | not available |
| required | not available | not available |
| required | not available | not available |
| required | not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
What it addsPermalink to What it adds#
Its declared extensions target these feature types:
What it receivesPermalink to What it receives#
Nothing. Other feature types don't send it items.
Used inPermalink to Used in#
No page refers to it yet.