Make ngx_http_v2_push_resource api public

2018-11-12 Thread Cubic
I am intend to write an Nginx module which support downstream message push through http2 protocol. The main process is as below. 1. Client connect to Nginx and use http2 protocol to send a long polling request stream. 2. Nginx hold this long polling request stream and wait downstream messages. 3.

Nesting variables to build header contents - is there a better way?

2018-11-12 Thread petecooper
Hello. I use `add_header` to build Content Security Policy and Feature Policy headers. To help with change control and maintainability I build an Nginx variable from nothing and add each Content Security Policy and Feature Policy data/source type on a different line. The Nginx variable is unique t

Re: Exposing external JSON API in an Nginx custom path?

2018-11-12 Thread Francis Daly
On Mon, Nov 12, 2018 at 03:03:39AM +, Moorage via nginx wrote: Hi there, > The secret-sauce recipe was: > > in the mesh-ui config > > apiUrl: '/mesh/api/v1/', > > and in nginx > > location ^~ /mesh/ { > ... > proxy_pass http://meshproxy/; >