globally disable tcp proxy in +http-config
++ host (each turf @if) :: http host
++ hoke %+ each {$localhost ~} :: local host
?($.0.0.0.0 $.127.0.0.1) ::
- :: +http-config: full http-server configuration
- ::
- += http-config
- $: :: secure: PEM-encoded RSA private key and cert or cert chain
- ::
- secure=(unit [key=wain cert=wain])
- :: proxy: reverse TCP proxy HTTP(s)
- ::
- proxy=?
- :: log: keep HTTP(s) access logs
- ::
- log=?
- :: redirect: send 301 redirects to upgrade HTTP to HTTPS
- ::
- :: Note: requires certificate.
- ::
- redirect=?
- ==
- :: +http-rule: update configuration
- ::
- += http-rule
- $% :: %cert: set or clear certificate and keypair
- ::
- [%cert cert=(unit [key=wain cert=wain])]
- :: %turf: add or remove established dns binding
- ::
- [%turf action=?(%put %del) =turf]
- ==
++ httq :: raw http request
$: p/meth :: method
q/@t :: unparsed url
[%live insecure=@ud secure=(unit @ud)]
:: update http configuration
::
- [%rule =http-rule:eyre]
+ [%rule =http-rule]
:: starts handling an inbound http request
::
[%request secure=? =address =request:http]
secure=(unit [key=wain cert=wain])
:: proxy: reverse TCP proxy HTTP(s)
::
- proxy=?
+ proxy=_|
:: log: keep HTTP(s) access logs
::
log=?
::
redirect=?
==
+ :: +http-rule: update configuration
+ ::
+ +$ http-rule
+ $% :: %cert: set or clear certificate and keypair
+ ::
+ [%cert cert=(unit [key=wain cert=wain])]
+ :: %turf: add or remove established dns binding
+ ::
+ [%turf action=?(%put %del) =turf]
+ ==
:: +address: client IP address
::
+$ address
