Expose a service through Lucky
lucky_expose_serviceAttach a public hostname to an existing Lucky HTTPS/HTTP listener and reverse-proxy to a backend URL. Idempotently updates the backend if the domain already exists, reusing the current TLS listener.
Instructions
Idempotently attach a hostname to an existing Lucky HTTPS/HTTP listener and reverse-proxy it to a backend URL. Reuses the current TLS listener; does not create a new listen port. Domain should be a hostname without http://. Backend should be a full URL such as http://127.0.0.1:3000. If the domain already exists, only the backend (and optional name/auth) is updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Route remark shown in Lucky | |
| domain | Yes | Public hostname, without http:// | |
| backend | Yes | Origin URL, e.g. http://127.0.0.1:3000 | |
| enabled | No | Whether the route is enabled. Default true | |
| rule_key | No | Target listener key; omit to auto-select | |
| listen_port | No | Target listener port | |
| basic_auth_user | No | ||
| basic_auth_password | No | ||
| http_client_timeout | No | Lucky HttpClientTimeout in seconds for this reverse-proxy route | |
| insecure_backend_tls | No | Skip TLS verification when the backend is HTTPS with a self-signed cert |