• Home
  • Raw
  • Download

Lines Matching +full:configure +full:- +full:no +full:- +full:proxy

13 names the server was configured with for the various vhosts.  If no match, it
18 That allows lws to select the vhost early, and use vhost-specific TLS certs
19 so everything is happy. Again, if there is no match the connection proceeds
34 With lejp-conf / lwsws, the options can be applied to the first vhost using:
37 "listen-accept-role": "the-role-name",
38 "listen-accept-protocol": "the-protocol-name",
39 "fallback-listen-accept": "1"
42 See `./minimal-examples/raw/minimal-raw-fallback-http-server` for examples of
49 Notice there is a restriction that no vhost selection processing is possible,
59 ![plain http flow](/doc-assets/accept-flow-1.svg)
67 |Flag|lejp-conf / lwsws|Function|
68 |---|---|---|
69 |`LWS_SERVER_OPTION_FALLBACK_TO_APPLY_LISTEN_ACCEPT_CONFIG`|`"fallback-listen-accept": "1"`|Enable …
73 ![tls https flow](/doc-assets/accept-flow-2.svg)
78 |Flag|lejp-conf / lwsws|Function|
79 |---|---|---|
80 |`LWS_SERVER_OPTION_FALLBACK_TO_APPLY_LISTEN_ACCEPT_CONFIG`|`"fallback-listen-accept": "1"`|Enable …
81 |`LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS`|`"redirect-http": "1"`|Treat invalid tls packet as http…
82 |`LWS_SERVER_OPTION_ALLOW_HTTP_ON_HTTPS_LISTENER`|`"allow-http-on-https": "1"`|Accept unencrypted h…
86 ### Non-http listener
88 ![non-http flow](/doc-assets/accept-flow-3.svg)
93 |Flag|lejp-conf / lwsws|Function|
94 |---|---|---|
95 …OPT_APPLY_LISTEN_ACCEPT_CONFIG|`"apply-listen-accept": "1"`|Force vhost to use listen-accept-role …
97 ## Using http(s) fallback with raw-proxy
99 If enabled for build with `cmake .. -DLWS_ROLE_RAW_PROXY=1 -DLWS_WITH_PLUGINS=1`
100 then lws includes ready-to-use support for raw tcp proxying.
105 See `./minimal-examples/raw/minimal-raw-proxy-fallback.c` for a working example.
107 ### fallback with raw-proxy in code
109 On the first vhost for the port, specify the required "onward" pvo to configure
110 the raw-proxy protocol...you can adjust the "ipv4:127.0.0.1:22" to whatever you
122 NULL, /* "next" pvo linked-list */
123 &pvo1, /* "child" pvo linked-list */
124 "raw-proxy", /* protocol name we belong to on this vhost */
138 ### fallback with raw-proxy in JSON conf
140 On the first vhost for the port, enable the raw-proxy protocol on the vhost and
144 "ws-protocols": [{
145 "raw-proxy": {
155 "listen-accept-role": "raw-proxy",
156 "listen-accept-protocol": "raw-proxy",
157 "fallback-listen-accept": "1"
169 `ssh -p 443 invalid@libwebsockets.org`... you will get permission denied from
171 ssh, scp, git-over-ssh etc all on port 443...