Commit graph

198 commits

Author SHA1 Message Date
Milosz Tanski
2120aab66c POC: Setting upstream vhost for nginx.
In the current k8 ingress there's no way to control "Host" header sent
to upstream server; it's always the configured vhost.

It's desirable to support custom Host header when proxying for a number
of cases. One such case is forwarding to an Service that points to an
external host that expect a host paramater (like AWS S3 buckets).
There's a number of others.

By default nginx set Host to the upstreams domain name (and not the one
passed in) like K8 always forces. This provided an escape hatch to this
behavior.
2017-09-10 11:38:53 -04:00
Manuel de Brito Fontes
13f47ad56b Pass headers from the custom error backend 2017-09-09 14:38:48 -03:00
Manuel de Brito Fontes
0c8f81301f Fix custom error pages 2017-09-07 20:39:58 -03:00
Manuel Alejandro de Brito Fontes
d8c7166891 Merge pull request #1312 from aledbf/custom-header
Allow custom forwarded for header
2017-09-07 14:27:15 -07:00
Manuel de Brito Fontes
c24e212aac Allow custom forwarded for header 2017-09-07 18:11:23 -03:00
Manuel de Brito Fontes
87e8b7255a Fix eol in nginx template 2017-09-07 13:48:36 -03:00
Manuel de Brito Fontes
5050307ea9 Enable nginx async writes 2017-09-07 13:40:10 -03:00
Ricardo Pchevuzinske Katz
d33b748716
Adds support for error page in Client Certificate Authentication 2017-09-03 17:12:03 -03:00
David Welch
8abbd1ae8c Allow PATCH in enable-cors 2017-09-01 10:54:41 -06:00
Manuel de Brito Fontes
a5432bf3a0 Fix listen error in aws 2017-08-31 14:28:20 -03:00
Manuel de Brito Fontes
57a18d11bd Fix nginx stats 2017-08-31 14:19:32 -03:00
danielqsj
e9a14cbe97 Add indent for nginx.conf 2017-08-31 17:10:12 +08:00
Max Laverse
d9e7d1eabc Add support for 'worker-shutdown-timeout' 2017-08-29 11:55:59 +02:00
Manuel de Brito Fontes
edcc3dfc81 Make Ingress annotations available in template 2017-08-25 22:39:30 -03:00
Manuel de Brito Fontes
a85cfd10b5 Add additional headers when custom default backend is used 2017-08-25 20:56:08 -03:00
Manuel Alejandro de Brito Fontes
b791460206 Merge pull request #1244 from aledbf/add-custom-backend-annotation
Add custom default backend annotation
2017-08-25 15:15:17 -04:00
Manuel de Brito Fontes
bf12e793f6 Add custom backend annotation 2017-08-25 15:49:52 -03:00
Manuel Alejandro de Brito Fontes
d2546d0291 Merge pull request #1212 from danielqsj/bind-address
Add option to specify addresses on which the server will accept
2017-08-25 12:05:52 -04:00
Max Laverse
dd00b6d7b3 Add support for access-log-path and error-log-path 2017-08-25 14:03:09 +02:00
danielqsj
06f237c66d Add options to bind address 2017-08-25 10:24:32 +08:00
Manuel Alejandro de Brito Fontes
e7d2ff6fac Merge pull request #1239 from aledbf/pc
Add flags to customize listen ports and detect port collisions
2017-08-24 10:23:59 -04:00
Manuel de Brito Fontes
0459674931 Add flags to customize listen ports and detect port collisions 2017-08-24 10:56:08 -03:00
Daniel Fernandes Martins
d57bc292c3 Add support for 'client_body_timeout' and 'client_header_timeout' 2017-08-24 09:33:35 -03:00
Fernando Diaz
86357332e3 Add Validation for Client Body Buffer Size
Adds validation so that if a bad value is input into the client
body buffer size annotation then client_body_buffer_size is not set.
That way a log error is thrown and it fails gracefully rather than
killing the ingress controller.
2017-08-23 20:04:51 -05:00
Manuel de Brito Fontes
210ddb797a Fix Equal comparison 2017-08-23 17:52:17 -03:00
Manuel Alejandro de Brito Fontes
f593cb8e2f Merge pull request #1226 from danielqsj/useless-variable
Remove useless variable in nginx.tmpl
2017-08-23 13:01:34 -04:00
danielqsj
77c9556dde Remove useless variable in nginx.tmpl 2017-08-23 15:06:13 +08:00
Manuel de Brito Fontes
806144421e Move certificate authentication from location to server 2017-08-23 00:39:38 -03:00
Seth Pollack
f045fa6d88 refactor rate limit whitelist 2017-08-22 20:47:29 -04:00
Seth Pollack
a3594f6c4c keep zones unique per ingress resource 2017-08-22 14:54:08 -04:00
Manuel de Brito Fontes
a392f29956 Replace base64 encoding with random uuid 2017-08-22 10:53:13 -03:00
Manuel Alejandro de Brito Fontes
def5155aa6 Merge pull request #1210 from sethpollack/whitelist
add rate limit whitelist
2017-08-22 08:23:45 -04:00
Manuel Alejandro de Brito Fontes
9863140b8c Merge pull request #1186 from diazjf/client-body-buffer-size
Add annotation for client-body-buffer-size per location
2017-08-22 08:02:35 -04:00
Seth Pollack
6253c34266 add rate limit whitelist 2017-08-22 07:53:52 -04:00
Fernando Diaz
e9ffbf0f87 Add annotation for client-body-buffer-size per location
Adds an annotation which allows for client-body-buffer-size to
be configured per specific locations specified in the ingress
resource yaml.
2017-08-21 23:12:30 -05:00
Manuel de Brito Fontes
884b388438 Fix template error 2017-08-21 16:06:38 -03:00
Manuel Alejandro de Brito Fontes
6ef63438b6 Merge pull request #1190 from aledbf/disable-ssl-passthrough
Add flag to disable SSL passthrough
2017-08-20 22:25:06 -04:00
Manuel de Brito Fontes
daa9fea41a Add flag to disable SSL Passthrough 2017-08-20 22:34:31 -03:00
Manuel de Brito Fontes
b2be9f0e04 Fix sign in URL 2017-08-20 20:39:58 -03:00
Manuel de Brito Fontes
ed68194688 Add support for temporal and permanent redirects 2017-08-20 15:07:25 -03:00
Fernando Diaz
47e4dd59a8 Merge branch 'master' into server-alias 2017-08-17 17:32:48 -05:00
Fernando Diaz
e12138f4dc Remove any aliases that conflict with a hostname
Removes the alias association if an existing server
with the same hostname as the alias exists. This is
done to disallow any duplicate server creation when
the alias annotation is provided.
2017-08-17 13:05:52 -05:00
Manuel de Brito Fontes
5e08600d2f Use variable request_uri as redirect after auth 2017-08-17 14:49:44 -03:00
Fernando Diaz
62fea9aa01 Update Server Alias Annotation with Review Changes
Updates the Server-Alias annotation to create another server
containing the same configuration as the current server, but
with the name provided in the annotation.
2017-08-15 14:49:04 -05:00
Fernando Diaz
ac504bdbc0 Add support for Server Alias in Nginx
Adds support for server alias in nginx. Adds a new annotation
which allows us to specify a server alias that will be appended
to the server name.
2017-08-13 13:01:00 -05:00
Manuel de Brito Fontes
fb3c7c3714 Cleanup remote address in nginx template 2017-08-10 11:41:14 -04:00
Manuel Alejandro de Brito Fontes
91077a2ed8 Merge pull request #1088 from aledbf/worker-timeout
Configure nginx worker timeout
2017-08-08 14:41:33 -04:00
Manuel de Brito Fontes
106cfca1a6 Configure nginx worker timeout 2017-08-08 14:17:49 -04:00
zhengjiajin
f8c4c0da21 Fix some broken link 2017-08-08 17:50:14 +08:00
Manuel Alejandro de Brito Fontes
cf732e846e Merge pull request #1074 from aledbf/rem-lua
Remove lua and use fastcgi to render errors
2017-08-07 22:15:32 -04:00