Commit Graph

302 Commits

Author SHA1 Message Date
Aaron Friel
ccccd9f252 Experimental support for legacy / malformed responses from proxied server.
This is entirely to support behavior of broken web servers that might be
proxied.

The culprit, in this case, is a Jenkins server on Ubuntu 12.04 (installed using
their repositories and running in the default Servlet container). This server
for whatever reason generates responses that have this rare ill-formed set of
headers:

  HTTP/1.1 200 OK
  Connection: Close

With *no content-length* and *no transfer-encoding*.

So this is an initial attempt at working around this.
2013-03-23 03:54:57 -05:00
Michael Snoyman
8f9d6defd1 Added .travis.yml 2013-03-21 10:06:54 +02:00
Michael Snoyman
cb744ced60 network-conduit-tls bump 2013-03-21 10:04:28 +02:00
root
a382522580 Clean up a comment from an earlier version of the code. 2013-03-20 00:24:48 -05:00
root
df38b36b59 Add examples of reverse proxy and header rewriting to configs. 2013-03-20 00:18:10 -05:00
root
03dbc0807d Built-in reverse proxy now supports rewriting headers
This is necessary for using Keter as a front-end to other web
services that may require hacks like Jenkins does, where the
"Location" header needs to be rewritten to use https on every
response.

Example:

```
root: ..
port: 80
ssl:
  # host:
  port:
  key:
  certificate:
reverse-proxy:
  - reversed-host: jenkins-internal.corp.example.com
    reversed-port: 8080
    reversing-host: jenkins.example.com
    ssl: False
    rewrite-response:
      - header: Location
        from: ^http://jenkins.example.com
        to: https://jenkins.example.com
```
2013-03-20 00:01:43 -05:00
root
ee569afc0e Add cabal sandbox files to git ignore 2013-03-17 00:44:17 -05:00
root
58b921866a Add example in README.md for Keter reverse proxy.
This is related to previous commit.
2013-03-16 16:39:38 -05:00
root
a2475db419 Add static reverse proxy support for Keter.
No longer have to set up keter bundles for mighttpd or other proxies.
2013-03-16 16:36:57 -05:00
Michael Snoyman
5cda4998db wai 1.4 2013-02-18 18:46:06 +02:00
Michael Snoyman
cb6f9f4e86 conduit 1.0 2013-02-18 10:47:46 +02:00
Michael Snoyman
02d9e8c0ad Version bump 2013-02-13 12:56:55 +02:00
Michael Snoyman
41fbac9c07 Merge pull request #10 from Tehnix/patch-1
Keter fails to build if tar < 0.4
2013-02-13 02:56:19 -08:00
Christian Kjær Laustsen
c6be7660d6 Keter fails to build if tar < 0.4
Keter fails to install when tar is too old. It outputs:

Keter/App.hs:161:38: 
    Not in scope: type constructor or class `Tar.FormatError'
2013-02-13 01:06:49 +01:00
Michael Snoyman
9e1b46a66f Updated setup-keter.sh 2013-01-30 11:43:30 +02:00
Michael Snoyman
03bb4ba811 Version bump 2013-01-28 10:12:50 +02:00
Michael Snoyman
36469f703a App itself is now optional 2013-01-28 09:09:02 +02:00
Michael Snoyman
ae3005ac65 Version bump 2013-01-02 18:33:30 +02:00
Imran Hameed
1aba8aa4fa support default bundles
keter bundles configured with a primary hostname of "*" will serve as
the default target for all requests that aren't associated with an
explicit host mapping

this is useful when running keter as a deployment manager for a single
application on multiple machines with distinct hostnames behind a
load-balancing reverse proxy that modifies the http host header:
cluster-wide deployments no longer require the generation of a unique
keter bundle for each machine

managing two separate wildcard applications with the same keter instance
will result in an obvious race
2013-01-02 06:55:15 -08:00
Michael Snoyman
855ae91a99 Merge pull request #5 from solidsnack/master
Simplify use of Bash script for setup
2012-12-29 09:15:09 -08:00
Jason Dusek
17843e9239 Quote variable reference (you never know :). 2012-12-28 14:29:09 +00:00
Jason Dusek
5ef3005eac Move setting of diagnostic/error flags into script. 2012-12-28 14:27:55 +00:00
Michael Snoyman
894607bc15 Version bump 2012-12-27 11:53:34 +02:00
Michael Snoyman
2fd2919640 Correctly set UID/GID on all created folders (#4) 2012-12-27 11:52:55 +02:00
Michael Snoyman
54dbe11845 Removed out-of-date technical details 2012-12-27 10:38:38 +02:00
Michael Snoyman
02a85413aa Place process tracker in its own process group 2012-11-19 12:11:31 +02:00
Michael Snoyman
c1e49dc1cf Kill processes when Keter shuts down (#3) 2012-11-19 10:31:40 +02:00
Michael Snoyman
93676eeb07 Slightly more helpful error messages 2012-11-04 10:35:21 +02:00
Michael Snoyman
71e5772505 Version bump 2012-10-24 16:54:54 +02:00
Michael Snoyman
5a5c7a45b1 Quick Start in README 2012-10-24 16:54:26 +02:00
Michael Snoyman
17df6adf28 Initial setup-keter.sh 2012-10-24 16:43:00 +02:00
Michael Snoyman
bd876edd3a setuid support 2012-10-24 16:31:18 +02:00
Michael Snoyman
b16bf80c6f Additions to README.md 2012-10-24 16:30:14 +02:00
Michael Snoyman
264a9f33bc Documentation: file location is /opt/keter/bin 2012-10-23 20:48:55 +02:00
Michael Snoyman
29eb1a4a6c Version bump 2012-10-21 15:04:31 +02:00
Michael Snoyman
52971e4b6f Removed host list on Keter welcome page 2012-10-21 07:11:46 +02:00
Michael Snoyman
b0c173a8c1 Host name redirects 2012-10-21 07:07:26 +02:00
Michael Snoyman
99739e3f84 Slightly better error message 2012-10-21 06:51:35 +02:00
Michael Snoyman
30804ae341 unix-process-conduit 0.2 2012-10-16 21:21:11 +02:00
Michael Snoyman
da6ea6735c onException killProcess 2012-10-16 15:13:26 +02:00
Michael Snoyman
0f5920cf12 unix-process-conduit bump 2012-10-16 08:02:59 +02:00
Michael Snoyman
bc095450b2 CloseOnExec for creating files
This should solve the text file busy issue. The problem was that while
one green thread was writing a file to disk, another would already be
forking a process for executing a separate app. That new process would
retain a write FD to the file being created, which prevented that file
from eventually being executed.
2012-10-15 14:35:43 +02:00
Michael Snoyman
cbd0f9d19e New static hosts format 2012-10-14 18:17:01 +02:00
Michael Snoyman
63dc14b394 Version bump 2012-10-14 14:52:12 +02:00
Michael Snoyman
b081c2f28f Doc notice 2012-10-12 14:46:31 +02:00
Michael Snoyman
6abb9546cb http-reverse-proxy min version bump 2012-10-12 13:31:56 +02:00
Michael Snoyman
6955fe93e0 static-hosts 2012-10-12 12:59:46 +02:00
Michael Snoyman
a16f532880 extra-hosts 2012-10-12 12:17:00 +02:00
Michael Snoyman
e0fa8d7bac Avoid Tar.unpack 2012-10-12 12:02:58 +02:00
Michael Snoyman
5dffbed68d Version bump 2012-10-11 10:27:06 +02:00