Jean-Sébastien Pédron
3db68f5948
Merge branch 'stable'
2016-09-15 16:44:04 +02:00
Jean-Sébastien Pédron
907f920881
Update rabbitmq-components.mk
2016-09-15 15:48:03 +02:00
Jean-Sébastien Pédron
a7fd9e0eda
Merge branch 'stable'
2016-09-07 09:49:43 +02:00
Jean-Sébastien Pédron
f20faa8405
Travis CI: Test on Erlang 19.0
2016-09-07 09:49:16 +02:00
Michael Klishin
d108058e5d
Cosmetics
...
(cherry picked from commit 11fef3d53d700d457133231fbf4a80d76b63e1b6)
2016-09-06 10:37:59 +02:00
Loïc Hoguin
2ecd4ae119
Fix duplicate content-type in error responses
...
(cherry picked from commit faf8e494c6b92c7ea8784a58afbecacbe8f16110)
2016-09-06 10:37:59 +02:00
Loïc Hoguin
b69f639bfe
Enable automatic compression by default
...
(cherry picked from commit 31c72b55b4d9ba3f10246c46bffd67a79db37d7a)
2016-09-06 10:37:59 +02:00
Loïc Hoguin
3a4dc487f8
Allow configuring Cowboy options with cowboy_opts
...
Similar to RabbitMQ-Web-STOMP. Allows users to configure the
management plugin to return compressed responses.
(cherry picked from commit 98589f2af7ef0508b90562454d3b04fd263743bc)
2016-09-06 10:37:59 +02:00
Jean-Sébastien Pédron
d8297761f8
Makefile: Add Ranch as a BUILD_DEPS to be sure Ranch 1.2.1 is pulled
...
(cherry picked from commit 339fca6c67ddd694cfa4bddcfffb710316d9cbc5)
2016-09-06 10:37:52 +02:00
Loïc Hoguin
8368cfa701
Use Cowboy instead of Webmachine/Mochiweb for Web plugins
...
As part of a push to reduce the number of dependencies from the
RabbitMQ project, the management plugin needed to be converted
from Webmachine to Cowboy REST. This plugin provides a convenient
interface to listeners, which had to be converted from Mochiweb's
to Cowboy's also.
Because Cowboy does not have any logging built-in we keep
Webmachine's access logger for now. It has been adapted to use
data coming from Cowboy, as opposed to Mochiweb. The event handler
for logging has also been moved to web dispatch.
The main breaking change in the interface is that contexts do not
take a fun for the main loop anymore, but instead take a dispatch
list of the routes to be served by that context. Routes must be
compiled using cowboy_router:compile(Routes), and will be served
with the context prefix appended.
Some contexts do not require any code change, including the static
contexts and port redirect contexts.
To serve many applications, we use a Cowboy middleware specific
to RabbitMQ which, when receiving a request, checks in the registry
if there is a matching application, and use its dispatch list for
any subsequent operations.
(cherry picked from commit b8b8c06dd2af6034a47372c4b53215d54017c546)
2016-09-06 10:36:53 +02:00
Jean-Sébastien Pédron
c4051d0ef0
Merge branch 'stable'
2016-09-02 16:10:49 +02:00
Jean-Sébastien Pédron
163d3d96b3
Update rabbitmq-components.mk
2016-09-02 13:22:28 +02:00
Jean-Sébastien Pédron
076049c6bf
Update rabbitmq-components.mk
2016-09-02 12:03:33 +02:00
kjnilsson
25e16c7d69
flter out rabbitmq-test from TEST_DEPS
2016-07-18 11:51:18 +01:00
Michael Klishin
73cdbe50b7
Update rabbitmq-components.mk
2016-07-14 15:44:15 +03:00
Michael Klishin
a3ef3b09b9
Update rabbitmq-components.mk
2016-07-14 15:37:37 +03:00
Michael Klishin
d08c6a308c
Update rabbitmq-components.mk
2016-07-14 13:47:59 +03:00
Michael Klishin
3ef2974adc
Update rabbitmq-components.mk
2016-07-14 13:20:05 +03:00
Michael Klishin
914487360a
Merge branch 'stable'
2016-06-25 00:21:18 +03:00
kjnilsson
dbdef107ba
remove some unused code
...
add travis config
2016-06-22 16:40:38 +01:00
Michael Klishin
4980c63121
Switch test suite to Common Test
2016-06-21 22:46:46 +03:00
Michael Klishin
e5a92a27fd
Merge branch 'stable'
2016-05-29 23:37:06 +03:00
Michael Klishin
9e1a04a2ac
Update rabbitmq-components.mk
2016-05-29 23:21:57 +03:00
Michael Klishin
48244d0177
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 09:57:13 -07:00
Michael Klishin
c7dcd38b69
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 14:22:51 +03:00
kjnilsson
cec1c5f139
Merge branch 'stable'
2016-05-18 13:22:06 +01:00
Karl Nilsson
30ade813cd
Update rabbitmq-components.mk
2016-05-18 12:48:02 +01:00
Michael Klishin
c999fce80b
Merge pull request #15 from rabbitmq/rabbitmq-server-546
...
Use erlang 18.3 only in travis
2016-05-17 12:05:54 +03:00
Michael Klishin
96b9a8054f
Update rabbitmq-components.mk
2016-05-17 11:17:55 +03:00
Michael Klishin
3001c70c6b
Update rabbitmq-components.mk
2016-05-17 10:16:11 +03:00
Daniil Fedotov
f55b654a43
Use erlang 18.3 only in travis
2016-05-12 10:58:25 +01:00
Daniil Fedotov
2cea12951d
Merge pull request #11 from rabbitmq/rabbitmq-web-dispatch-10
...
Fix duplicate content-type in error responses
2016-04-28 17:12:11 +01:00
Daniil Fedotov
2de3e615f4
Remove content-encoding header from error responses
2016-04-28 16:07:42 +01:00
Daniil Fedotov
ea86cb2a38
Stub for broker version requirements
2016-04-22 15:04:09 +01:00
Michael Klishin
be2a2f3c0e
Merge branch 'stable'
2016-03-23 17:21:05 +03:00
Michael Klishin
d02f337769
Update rabbitmq-components.mk
2016-03-23 17:13:43 +03:00
Michael Klishin
c1ffea72e4
Cosmetics
2016-03-19 05:15:32 +03:00
Michael Klishin
dccefda4ef
Compile from scratch
2016-03-18 19:17:09 +00:00
Loïc Hoguin
cb82930ae3
Fix duplicate content-type in error responses
2016-03-14 13:34:30 +01:00
Loïc Hoguin
40e983b68b
Enable automatic compression by default
2016-03-14 13:23:59 +01:00
Loïc Hoguin
c3adf2ddf7
Remove any content-encoding header from error responses
2016-03-14 12:24:17 +01:00
Loïc Hoguin
0d41a7d1db
Allow configuring Cowboy options with cowboy_opts
...
Similar to RabbitMQ-Web-STOMP. Allows users to configure the
management plugin to return compressed responses.
2016-03-11 12:54:32 +01:00
Michael Klishin
8cf741ea7a
Merge pull request #7 from rabbitmq/rabbitmq-server-483
...
Test that Web Dispatch logs source IP address and path
2016-01-05 19:02:29 +03:00
Joseph Yiasemides
10022118e3
Change path to the Web Dispatch log file for the test
...
Write log file for HTTP requests/responses to the canonical directory
(when testing). This is set when the test set is run.
2016-01-05 11:26:22 +01:00
Joseph Yiasemides
7b79712478
Test that a given status is logged
2016-01-05 11:16:37 +01:00
Jean-Sébastien Pédron
a74650b73d
Makefile: Add Ranch as a BUILD_DEPS to be sure Ranch 1.2.1 is pulled
2016-01-05 10:50:49 +01:00
Joseph Yiasemides
4cd8d43376
Test that Web Dispatch logs source IP address and path
...
This is general enough to test Web Dispatch with every application
that does logging as it's done here. Indeed, the Management plugin
does log like this, so this closes #483 .
2016-01-04 16:23:15 +01:00
Michael Klishin
5f0f018e3a
Merge branch 'stable'
2016-01-01 13:23:41 +03:00
Michael Klishin
ec684d2b8e
Update (c) info
2016-01-01 12:59:19 +03:00
Michael Klishin
f4e2c46e09
Merge pull request #4 from rabbitmq/rabbitmq-management-63
...
Use Cowboy instead of Webmachine/Mochiweb for Web plugins
2015-12-29 09:00:43 +03:00
Pierre Fenoll
1c718f6b82
.gitignore: make absolute paths relative
2015-12-28 11:06:32 +01:00
Loïc Hoguin
cfc4631f64
Use Cowboy instead of Webmachine/Mochiweb for Web plugins
...
As part of a push to reduce the number of dependencies from the
RabbitMQ project, the management plugin needed to be converted
from Webmachine to Cowboy REST. This plugin provides a convenient
interface to listeners, which had to be converted from Mochiweb's
to Cowboy's also.
Because Cowboy does not have any logging built-in we keep
Webmachine's access logger for now. It has been adapted to use
data coming from Cowboy, as opposed to Mochiweb. The event handler
for logging has also been moved to web dispatch.
The main breaking change in the interface is that contexts do not
take a fun for the main loop anymore, but instead take a dispatch
list of the routes to be served by that context. Routes must be
compiled using cowboy_router:compile(Routes), and will be served
with the context prefix appended.
Some contexts do not require any code change, including the static
contexts and port redirect contexts.
To serve many applications, we use a Cowboy middleware specific
to RabbitMQ which, when receiving a request, checks in the registry
if there is a matching application, and use its dispatch list for
any subsequent operations.
2015-12-21 18:05:36 +01:00
Jean-Sébastien Pédron
706a3388d2
Update erlang.mk
2015-12-18 20:34:37 +01:00
Jean-Sébastien Pédron
a053362992
Sync with upstream build.config
2015-12-18 20:33:04 +01:00
Jean-Sébastien Pédron
a8c5b0c131
Update rabbitmq-components.mk
2015-12-18 19:08:10 +01:00
Michael Klishin
deaf041986
Update rabbitmq-components.mk
2015-12-18 19:49:32 +03:00
Jean-Sébastien Pédron
73913979af
Update rabbitmq-components.mk
2015-12-03 15:38:50 +01:00
Jean-Sébastien Pédron
72d5c58cbc
Update rabbitmq-components.mk
2015-12-01 18:36:23 +01:00
Jean-Sébastien Pédron
e3a41596ee
Update rabbitmq-components.mk
2015-12-01 16:17:20 +01:00
Jean-Sébastien Pédron
c5002d6dad
Update rabbitmq-components.mk
2015-11-30 09:12:56 +01:00
Jean-Sébastien Pédron
3ceef444a3
Update rabbitmq-components.mk
2015-11-26 08:54:12 +01:00
Jean-Sébastien Pédron
2ed3d20dea
Update rabbitmq-components.mk
2015-11-26 08:41:24 +01:00
Jean-Sébastien Pédron
a6e3dec97a
Update erlang.mk
2015-11-25 10:36:24 +01:00
Jean-Sébastien Pédron
c4eef007ff
Update rabbitmq-components.mk
2015-11-25 10:35:24 +01:00
Jean-Sébastien Pédron
12db6dd6ed
Update rabbitmq-components.mk
2015-11-20 10:52:06 +01:00
Jean-Sébastien Pédron
e0bb6e0a9c
Update erlang.mk
2015-11-19 14:32:12 +01:00
Jean-Sébastien Pédron
37c30bef65
Update erlang.mk
2015-11-18 19:14:56 +01:00
Jean-Sébastien Pédron
c3ec1ab07d
Update erlang.mk
2015-11-18 17:40:38 +01:00
Jean-Sébastien Pédron
87d1576319
Update erlang.mk
2015-11-10 13:12:40 +01:00
Jean-Sébastien Pédron
7d787679f8
Update rabbitmq-components.mk
2015-11-10 13:11:18 +01:00
Jean-Sébastien Pédron
ddb30accfe
Update rabbitmq-components.mk
2015-11-05 20:51:35 +00:00
Jean-Sébastien Pédron
ed09eb29fb
Update rabbitmq-components.mk
2015-11-03 15:12:31 +01:00
Jean-Sébastien Pédron
838fe64b75
Update rabbitmq-components.mk
2015-11-02 10:20:52 +01:00
Jean-Sébastien Pédron
42662defed
Update rabbitmq-components.mk
2015-10-30 17:32:57 +01:00
Jean-Sébastien Pédron
1b5ad292a7
Update erlang.mk
2015-10-28 11:16:24 +01:00
Jean-Sébastien Pédron
85728e9b1a
Update rabbitmq-components.mk
2015-10-28 11:10:38 +01:00
Jean-Sébastien Pédron
08f1ed64cb
Update erlang.mk
2015-10-26 15:33:50 +01:00
Jean-Sébastien Pédron
90d42587de
Update rabbitmq-components.mk
2015-10-26 11:15:36 +01:00
Jean-Sébastien Pédron
45b2250daa
Update rabbitmq-components.mk
2015-10-26 10:21:26 +01:00
Jean-Sébastien Pédron
f6618d8b99
No need to set -Dpre17_type_specs
...
This was needed in SockJS instead.
2015-10-23 23:34:50 +02:00
Jean-Sébastien Pédron
4a07f44a30
Define pre17_type_specs when using Erlang R16B
2015-10-23 20:56:12 +02:00
Jean-Sébastien Pédron
15386fe5f0
rabbit_web_dispatch_test: Fix relative path to docroot
2015-10-23 20:38:22 +02:00
Jean-Sébastien Pédron
129a4c98be
Add amqp_client as a test dependency
2015-10-23 20:38:01 +02:00
Jean-Sébastien Pédron
3977695237
Update erlang.mk's build.config
2015-10-23 20:32:21 +02:00
Jean-Sébastien Pédron
95ec6f7fc6
Adapt .travis.yml to erlang.mk
2015-10-23 20:12:44 +02:00
Jean-Sébastien Pédron
8dbd3b846c
Update erlang.mk
2015-10-23 18:33:16 +02:00
Jean-Sébastien Pédron
1c9285d32f
Update rabbitmq-components.mk
2015-10-23 16:05:51 +02:00
Jean-Sébastien Pédron
bfc9450628
Update erlang.mk
2015-10-22 18:34:58 +02:00
Jean-Sébastien Pédron
9f6fe091c6
Update rabbitmq-components.mk
2015-10-19 17:35:45 +02:00
Jean-Sébastien Pédron
b573d849cb
Update erlang.mk
2015-10-19 17:12:56 +02:00
Jean-Sébastien Pédron
f8376d25ea
Update rabbitmq-components.mk
2015-10-19 17:11:42 +02:00
Jean-Sébastien Pédron
8c2955e081
Update rabbitmq-components.mk
2015-10-16 18:04:03 +02:00
Jean-Sébastien Pédron
1903c09204
Update rabbitmq-components.mk
2015-10-16 16:58:18 +02:00
Jean-Sébastien Pédron
08f8a41bf0
Update rabbitmq-components.mk
2015-10-16 13:03:10 +02:00
Jean-Sébastien Pédron
626044637c
Update rabbitmq-components.mk
2015-10-15 16:32:16 +02:00
Jean-Sébastien Pédron
99d2ee8051
Update rabbitmq-components.mk
2015-10-14 13:01:13 +02:00
Jean-Sébastien Pédron
65099c5585
Fix build by removing unused variables
2015-10-14 12:35:27 +02:00
Jean-Sébastien Pédron
0168386aac
rabbit_common is added automatically
2015-10-14 12:33:18 +02:00
Jean-Sébastien Pédron
9baa790d59
Update rabbitmq-components.mk
2015-10-14 12:32:24 +02:00
Jean-Sébastien Pédron
daf5c8c407
Initial move to erlang.mk
2015-10-14 12:08:05 +02:00
Gavin M. Roy
737b4330dd
Add travis-ci configuration
2015-08-21 20:03:55 -04:00
Loïc Hoguin
4a9d3730ba
Use path instead of raw_path when dispatching static files
...
This allows us to request static files with a query string,
which can be useful as those can be used by Javascript.
2015-08-10 14:16:15 +02:00
Michael Klishin
a51e578f06
Sync CONTRIBUTING.md with the template one
2015-02-20 17:09:16 +03:00
Jean-Sébastien Pédron
e4f099aaf9
Merge branch 'stable'
2015-02-19 18:12:47 +01:00
Jean-Sébastien Pédron
a7f4ee1f82
Convert .hgignore to .gitignore
2015-02-19 17:26:01 +01:00
Michael Klishin
842e230920
Sync CONTRIBUTING.md with the template one
2015-02-18 00:25:31 +03:00
Jean-Sébastien Pédron
ee3ad89043
Remove the "moved to GitHub" warning.
2015-02-17 21:16:06 +01:00
Jean-Sebastien Pedron
d0066a8d37
README.md: Warn about the move to GitHub
2015-02-17 18:11:14 +01:00
Simon MacMullen
7edee7239e
Ensure responses are always application/json, even in error cases handled by webamchine.
2014-10-29 11:30:59 +00:00
Simon MacMullen
d7d7390d6f
poodle_check/1 has to come after ensure_ssl/0.
2014-10-20 15:56:01 +01:00
Simon MacMullen
a54280ef3a
Disable SSLv3 and warn if we can't.
2014-10-20 14:44:11 +01:00
Simon MacMullen
b68dd43796
Remove a special-case error_logger invocation
2014-08-11 18:25:51 +01:00
Simon MacMullen
65bd3dc241
Update copyright for 2014
2014-03-17 17:25:26 +00:00
Emile Joubert
cd1ac13cf0
Merged bug25538 into stable
2013-07-31 13:13:09 +01:00
Simon MacMullen
b3989644bc
Changes for new webmachine logging: simplify setup() since apps can now just call webmachine_log:add_handler/2 and tweak various logging APIs.
2013-07-29 17:34:00 +01:00
Simon MacMullen
d8ac6ae972
s/VMware/GoPivotal/g
2013-07-01 10:49:15 +01:00
Simon MacMullen
524ba93dea
Add unrelativise/2 and clean up tests a bit.
2013-05-30 12:15:51 +01:00
Simon MacMullen
77430d339a
Fix tests
2013-02-08 14:49:55 +00:00
Simon MacMullen
e27251ff5d
Rename rabbitmq-mochiweb to rabbitmq-web-dispatch
2013-02-08 12:22:01 +00:00
Emile Joubert
459a6124fe
Update copyright 2013
2013-01-23 11:56:10 +00:00
Simon MacMullen
1929347496
Redirects should not contain newlines
2012-11-23 10:28:26 +00:00
Tim Watson
bb7f5b6dfc
merge default
2012-11-06 17:10:41 +00:00
Emile Joubert
e0f1df1071
Merged bug25149 into default
2012-11-05 12:25:57 +00:00
Simon MacMullen
41c0cb7aa6
It is of course possible for two users of the rabbitmq-mochiweb API to try to start two differently specced listeners on the same port. Provide a sane error message when that happens, and also clean up error handling in lookup_* a bit. This should really have been in 25259. Ah well.
2012-11-01 16:19:32 +00:00
Simon MacMullen
67f590126d
Redirector should not blow up if presented with an HTTP request with no host header.
2012-11-01 16:16:54 +00:00
Simon MacMullen
4e38af264b
Since this was unclear.
2012-11-01 12:52:45 +00:00
Simon MacMullen
2506958689
It's a /5 now.
2012-10-31 13:21:48 +00:00
Simon MacMullen
3a5ffc1bf1
Update comments for accuracy and usefulness.
2012-10-31 13:17:27 +00:00
Simon MacMullen
828871b6b6
Drastic trim of now-wrong documentation.
2012-10-31 13:14:48 +00:00
Simon MacMullen
6d2ca49d7e
Provide a mechanism to ignore bind failures
2012-10-30 18:00:04 +00:00
Simon MacMullen
737ad493d2
Redirecter.
2012-10-30 17:27:31 +00:00
Simon MacMullen
90c3f9569a
Remove pointless wrapper function
2012-10-30 16:55:27 +00:00
Simon MacMullen
2e16cf4577
While we're here, let's use ETS like a sane person instead of abusing the application environment.
2012-10-30 14:55:54 +00:00
Simon MacMullen
78865b286b
Simplify rabbitmq_mochiweb quite a bit. Remove the ability for users to configure contexts and listeners in rabbitmq-mochiweb, alter the APIs so that users of rabbitmq-mochiweb (e.g. mgmt) supply a listener, presumably from their own config. Also remove rabbit_mochiweb:register_authenticated_static_context/6 as nothing has used it for ages, remove some dubious error handling from the registry (let it crash!) and merge rabbit_mochiweb_sup and rabbit_mochiweb_web as they are so interlinked.
2012-10-30 14:37:02 +00:00
Simon MacMullen
82d9d5b533
Don't consider empty username and password to be invalid
2012-10-23 15:59:22 +01:00
Simon MacMullen
4621d77330
Don't just badmatch if we can't start the listener.
2012-09-14 12:03:05 +01:00
Simon MacMullen
7c9392fa92
webmachine_dispatcher:dispatch() has grown an extra argument. Cope.
2012-07-10 12:54:46 +01:00
Emile Joubert
30e0f89e6a
Update copyright 2012
2012-02-02 17:46:43 +00:00
Emile Joubert
03f8952bee
Update copyright 2012
2012-02-02 13:30:10 +00:00
Simon MacMullen
1f648b521b
R15B fix
2011-12-14 13:52:41 +00:00
Alexandru Scvortov
e1da4901c1
merge default into bug21319
...
Because we need rabbit_mochiweb:unregister_context/1 in some of the other
packages.
2011-10-10 13:29:52 +01:00
Simon MacMullen
f70843d320
Actually rabbitmq_mochiweb now contains some code that references webmachine. Depend on it to silence warnings.
2011-10-05 16:47:27 +01:00
Simon MacMullen
6ad805a1c8
Make the web workers transient since we might want to stop them. Make the registry transient as well, since there's no good reason for it to be permanent and permanent is kinda weird.
2011-10-04 15:48:19 +01:00
Alexandru Scvortov
d5d9fd3167
Backed out changeset 12e472b84d7b
2011-09-23 15:08:08 +01:00
Alexandru Scvortov
0e420a8d3f
mark rabbitmq-mochiweb as RELEASABLE
2011-09-19 12:00:24 +01:00
Alexandru Scvortov
d630c39c53
depend on mochiweb
2011-09-14 01:23:30 +01:00
Simon MacMullen
3524f67e28
Unregister a context, and stop the listener if that's appropriate.
2011-09-06 15:11:05 +01:00
Simon MacMullen
319ff09d77
Another infinity we were missing. Boo.
2011-09-06 15:05:12 +01:00
Simon MacMullen
91226b6f0e
Merge bug24186
2011-08-23 12:52:03 +01:00
Alexandru Scvortov
a70d39eb33
add dependency to webmachine-wrapper
2011-08-17 13:36:46 +01:00
Alexandru Scvortov
14d4fae9d4
merge default into bug24186
2011-08-16 14:32:11 +01:00
Marek Majkowski
6144bf9d2c
bug24280 merged into default
2011-08-08 16:38:05 +01:00
Michael Bridgen
45f8a156d3
Merge bug24240
2011-07-20 12:49:32 +01:00
Michael Bridgen
933145877f
Pattern match implicitly
2011-07-20 12:46:56 +01:00
Simon MacMullen
71c5bf8043
Set timeouts to infinity.
2011-07-19 16:09:30 +01:00
Simon MacMullen
d860483da7
A test? What a novel idea.
2011-07-19 12:30:26 +01:00
Michael Bridgen
276ecbfd38
Admit that it's markdown
2011-07-08 14:12:19 +01:00
Michael Bridgen
6f6d799c16
Defuse these context/path pairs as well
2011-07-08 14:10:44 +01:00
Simon MacMullen
f854490dcb
I *think* this makes it a bit clearer what goes with what...
2011-07-08 10:52:40 +01:00
Simon MacMullen
3b1aa097ed
Matthias points out the existence of lists:key*.
2011-07-07 13:08:16 +01:00
Simon MacMullen
84ba37b6c8
Make rabbit_mochiweb_registry:add/4 overwrite a record if you add the same context twice, rather than insert a duplicate.
2011-07-07 13:01:52 +01:00
Michael Bridgen
320cab652c
Factor out listener options in config grammar. Be consistent about quoting: Erlang values get backticks (markdown code blocks) and quoted as they would in Erlang. Everything else, i.e., URL bits, is quoted if it's string-like.
2011-07-06 17:05:45 +01:00
Michael Bridgen
2bae0c2685
Update README. Needs a bit more spelling out now.
2011-07-06 13:11:02 +01:00
Simon MacMullen
5676d32b84
This test is no longer needed.
2011-07-04 19:07:19 +01:00
Simon MacMullen
18b1f916ec
Change to a default listener that gets remapped to '*'.
2011-06-21 13:50:36 +01:00
Simon MacMullen
c7a144db03
Resurrect default
2011-06-21 13:49:15 +01:00
David Wragg
03639f0354
Revert bug24186
2011-06-18 00:45:14 +01:00
David Wragg
951dd8918a
The base .app file now lives in src/*.app.src
2011-06-17 14:44:35 +01:00
Michael Bridgen
65c216bebc
Merge bug23521
2011-06-15 11:50:10 +01:00
Michael Bridgen
0312fcd19b
Reinstate authenticated static contexts. May yet be useful.
2011-06-15 11:45:50 +01:00
Simon MacMullen
c43a6e6495
Add generated app file to .hgignore
2011-06-15 10:45:15 +01:00
Michael Bridgen
4e5efda038
It's 405 Method Not Allowed for this case.
2011-06-14 16:46:25 +01:00
Michael Bridgen
6b4a961047
Use pattern matching
2011-06-14 16:28:11 +01:00
Simon MacMullen
1036cb0dc6
Abstract and tidy up context selector, move the HEAD / GET check for statoc content to the handler.
2011-06-14 14:54:38 +01:00
Simon MacMullen
62cef8f770
Merged in default
2011-06-14 14:36:47 +01:00
Simon MacMullen
36318754c9
Don't bother try to cope if context has no name, that's a bug.
2011-06-13 16:44:56 +01:00
Simon MacMullen
352d258b53
Merge in default
2011-06-07 15:02:10 +01:00
Michael Bridgen
066af45983
Correct config grammar
2011-06-07 11:46:47 +01:00
Michael Bridgen
2f77befcec
Add unit tests for {Context, {Listener, Path}} form in config
2011-06-06 12:13:02 +01:00
Simon MacMullen
5acfeb5f7d
Ensure there's always a leading "/" for webmachine.
2011-06-03 15:02:50 +01:00
Simon MacMullen
a03d276f1c
Merge in default
2011-05-31 10:43:48 +01:00
Rob Harrop
6887f82b26
Merge with default
2011-05-31 10:23:52 +01:00
Matthew Sackman
757c60e38b
Correct .hgignore file again
2011-05-27 14:49:45 +01:00
Matthew Sackman
b7614aa658
Correct .hgignore
2011-05-27 14:20:34 +01:00
Matthew Sackman
655f468881
Merging bug24079 to default
2011-05-27 13:55:42 +01:00
Simon MacMullen
e58193baa8
Remove extra mgmt contexts. Fix contexts where the prefix is "". Remove register_authenticated_static_context.
2011-05-16 18:21:01 +01:00
Simon MacMullen
2fd1acbd27
Merge in default
2011-05-16 15:57:08 +01:00
Simon MacMullen
f9832be79f
Merge in default
2011-05-16 15:33:46 +01:00
Michael Bridgen
570bf3c663
Check for no_default_listener too
2011-05-16 14:19:56 +01:00
Michael Bridgen
331b972b57
Fix tests up for different implementation of check_contexts
2011-05-16 14:17:06 +01:00
Simon MacMullen
ff7fa11406
Silence warnings.
2011-05-16 12:26:06 +01:00
Simon MacMullen
39df70b15d
Cosmetic
2011-05-16 12:24:21 +01:00
Michael Bridgen
5981e338e1
Minor corrections
2011-05-13 16:40:10 +01:00
Michael Bridgen
691ae0db7e
Correct use of that form of context spec.
2011-05-13 16:36:19 +01:00
Michael Bridgen
2b200a49c8
Use longer names for the management contexts
2011-05-13 16:23:58 +01:00
Michael Bridgen
e1c34fefc7
Account for the nested-pair variety of context spec.
2011-05-13 16:23:36 +01:00
Michael Bridgen
8dfc5c4a99
Update README with the new configuration and API
2011-05-12 16:49:54 +01:00
Michael Bridgen
2af6d4b69c
Tidy ups as proposed in bug 23833 comment 58. Mainly just being consistent with names, and avoiding some unecessary (repeated) work.
2011-05-12 12:57:00 +01:00
Simon MacMullen
5a70bfbac3
Move .app to .app.in, remove module list
2011-05-12 12:50:25 +01:00
Simon MacMullen
b55399be41
Oops
2011-05-04 14:43:03 +01:00
Simon MacMullen
678197be7b
Fix from previous default merge.
2011-05-04 14:13:53 +01:00
Simon MacMullen
2e199faaec
Merge in default.
2011-05-03 18:20:11 +01:00
Simon MacMullen
6eacfea821
You know what? I don't think these even have a good excuse for existing.
2011-04-13 17:53:33 +01:00
Simon MacMullen
d70e3ecc0f
Application names: rabbit_foo -> rabbitmq_foo
2011-04-13 16:02:32 +01:00
Simon MacMullen
31cd70ea09
Merge from default
2011-04-11 17:21:49 +01:00
Simon MacMullen
bed9bb909b
rabbit_mochiweb_registry:list_all/0
2011-03-14 16:30:55 +00:00
Simon MacMullen
f70cd4ae35
Set mochiweb's ssl_opts automatically if it's not set explicitly.
2011-03-14 12:51:08 +00:00
Michael Bridgen
ccbdb0ba8c
Also, compile.
2011-03-14 12:47:35 +00:00
Michael Bridgen
b020e019ce
Exit if we don't have a port configured for a listener
2011-03-11 17:31:53 +00:00
Michael Bridgen
6b068886ac
Give the path prefix and the listener to dynamic handlers. This is accounted for in rabbit_mochiweb:makeloop/1, meaning that webmachine dispatch tables no longer have to include the prefix.
2011-03-10 12:05:26 +00:00
Michael Bridgen
03efe3ca8f
Default entries for all the mgmt contexts
2011-03-10 12:03:02 +00:00
Michael Bridgen
f107450158
Check configuration of contexts and listeners
2011-03-09 16:44:05 +00:00
Michael Bridgen
0d7d4e5455
Put management in together by default
2011-03-08 17:02:47 +00:00
Michael Bridgen
2a7ca6b000
Merge in default
2011-03-08 16:59:17 +00:00
Michael Bridgen
79509c4fa3
Start listeners when a handler is registered on them
2011-03-08 16:45:05 +00:00
Michael Bridgen
a26a5f66bc
Cosmetic
2011-03-07 15:43:35 +00:00
Michael Bridgen
26291b561a
Change setup to set the logger env variable, so lookups internal to webmachine will at least work. provide convenience defaults.
2011-02-23 14:51:44 +00:00
Michael Bridgen
e5dfeecd49
Acknowledge the adaption of webmachine:loop/1
2011-02-23 14:22:10 +00:00
Michael Bridgen
cb0079c0d4
Webmachine likes to have an error handler set, deep down in its code.
2011-02-22 17:15:35 +00:00
Michael Bridgen
d6ff89449d
Merge bug23702 heads
2011-02-22 14:10:10 +00:00
Michael Bridgen
0ce498fc64
Backed out changeset 8b76a3c95a9b
2011-02-22 14:04:42 +00:00
Michael Bridgen
3633492c98
Ops, this too. 404s get a triple back, not a pair.
2011-02-21 16:59:40 +00:00
David Wragg
00c6bea59d
s/IN_BROKER/WITH_BROKER/
2011-02-21 14:35:13 +00:00
Michael Bridgen
f2ed07237d
Add rabbit_webmachine, with a procedure for making a fun loop/1 given a webmachine dispatch table
2011-02-21 13:42:07 +00:00
Michael Bridgen
fcf1b25ad0
Merge in default
2011-02-21 12:06:53 +00:00
David Wragg
c1e3dd94e7
Add erl_crash.dump to .hgignore
2011-02-20 14:50:54 +00:00
Michael Bridgen
0653fe160f
Minor change to default config
2011-02-16 15:31:25 +00:00
David Wragg
d96defd9b4
Rename *_app.in to *.app
2011-02-16 15:01:32 +00:00
Michael Bridgen
88d3b33a6f
Be consistent with use of Prefix (which avoids some daft badmatches)
2011-02-15 15:41:46 +00:00
David Wragg
8f9d928d18
Merge default into bug23568
2011-02-15 15:39:17 +00:00
Michael Bridgen
31062ed941
Link contexts to listeners via the config, and give plugins that ability to find out listener options
2011-02-15 14:33:08 +00:00
David Wragg
ed24e157f3
More sensible listing of contexts without descriptions
2011-02-15 12:18:35 +00:00
Michael Bridgen
967d6651db
Change the interface exposed by rabbit_mochiweb to speak about contexts and default paths.
2011-02-15 11:25:53 +00:00
Michael Bridgen
815914f19e
Add the instance as a parameter to the context registration API. This is a breaking change for plugins.
2011-02-13 15:32:47 +00:00
Michael Bridgen
7d38fc248d
Give instances different registered names
2011-02-13 15:13:03 +00:00
Michael Bridgen
7ea8f56f09
Parameterise basically everything with an instance name, and allow the configuration to include more than one instance. By default, provide a 'default' instance, and for the minute, make everything use that. This works with e.g., management plugin with no changes. (Well, one change: don't rely on rabbit_mochiweb having an env entry for 'port').
2011-02-13 15:06:05 +00:00
David Wragg
5f97135a6e
Generate relative URLs in listing_fallback_handler
2011-02-11 11:37:23 +00:00
David Wragg
c9f9a368c1
Update .hgignore
2011-02-08 14:39:08 +00:00
David Wragg
b85ebac6fb
Make the test actually test something
2011-02-02 16:10:30 +00:00
David Wragg
290a1a629f
Simplify test, and hook into the new rabbitmq-public-umbrella testing support
2011-02-01 17:52:07 +00:00
Marek Majkowski
6c01fef939
Mochiweb updated to recent version
2011-01-21 14:05:51 +00:00
David Wragg
b048c916e4
Merge default into bug23568
2011-01-07 12:14:56 +00:00
Emile Joubert
32547906e4
Fix random range
2010-12-21 10:15:36 +00:00
Emile Joubert
58aeca002a
Smaller change by exact reimplementation of crypto:rand_bytes/1
2010-12-20 14:51:19 +00:00
Emile Joubert
3a5bf03180
Reduce dependency on crypto module
2010-12-20 10:34:35 +00:00
David Wragg
e8f77105ad
Overhaul for bug23568
2010-12-02 12:32:24 +00:00
David Wragg
8d49e6e802
Merge from default
2010-12-02 12:32:23 +00:00
Simon MacMullen
b6e8a1f597
Make the case where no contexts are installed clearer.
2010-11-12 13:53:51 +00:00
Simon MacMullen
a8c092d269
List contexts without descriptions. I think doing it this way makes more sense than adding descriptions, since the JSON-RPC contexts which are like this are no good to click on and for more advanced users anyway.
2010-11-12 13:03:45 +00:00
Simon MacMullen
fc36db4952
Fix the test "suite" and rehabilitate the single test within it to actaully do something, albeit not much.
2010-11-02 12:14:40 +00:00
Simon MacMullen
f3495697ba
Provide a mechanism to have authenticated static content.
2010-11-01 13:40:50 +00:00
Emile Joubert
964c10c1fb
Build on cygwin
2010-10-27 17:50:42 +01:00
Matthew Sackman
e40becf2e4
Split $package/Makefile into $package/Makefile and $package/package.mk.
2010-10-17 23:55:00 +01:00
Matthew Sackman
651e2a8ec0
Move test code so that test coverage works
2010-09-28 18:00:17 +01:00
Matthew Sackman
3b0cf8d29e
Correct naming of deps
2010-09-27 17:02:24 +01:00
Matthew Sackman
edc4da08e7
Make rabbitmq-mochiweb work with the new plugin build system
2010-09-24 17:55:29 +01:00
Emile Joubert
7a3d6a4c15
Build on cygwin
2010-09-15 10:36:26 +01:00
Matthias Radestock
b27b5e3584
merge heads
2010-09-05 21:29:39 +01:00
David Wragg
246fbdf85f
Merge bug23196 into default
2010-09-01 12:47:24 +01:00
Marek Majkowski
6ad20bb0c3
default merged into bug23199
2010-09-01 12:44:24 +01:00
Simon MacMullen
89a4c4e10c
More valid HTML.
2010-08-31 17:36:44 +01:00
Simon MacMullen
17ef73b281
Fix + rename vars.
2010-08-31 17:33:56 +01:00
Simon MacMullen
e8bfee9c76
Make the most cursory attempt possible towards valid HTML.
2010-08-31 17:26:43 +01:00
Simon MacMullen
ae578ffd41
Don't make list know about links.
2010-08-31 17:19:59 +01:00
Simon MacMullen
5b872b564a
Remove old APIs, rename some args to hopefully make them clearer...
2010-08-31 17:17:25 +01:00
Simon MacMullen
096daaaa76
Actually make the change...
2010-08-31 10:17:45 +01:00
Simon MacMullen
d7586f813b
List interesting contexts if no root handler is installed
2010-08-27 17:02:47 +01:00
Simon MacMullen
2603b90d63
place plugin version into .app descriptor
2010-08-27 12:44:35 +01:00
Simon MacMullen
41aedd035c
Add note on Erlang version needed.
2010-08-05 13:43:32 +01:00
Simon MacMullen
81e01f5706
Add a quick patch to make Mochiweb buildable on 12B3. This patch commits the following ugliness:
...
* Mochiweb tests won't work on 12B3
* The .app file is not very smartly autogenerated; it has (correct) hard coded
values for vsn and description, and no comments.
I think neither of those are a big deal.
2010-08-04 16:07:37 +01:00
Michael Bridgen
84dfcdd53e
rabbit-mochiweb tests need inets and crypto too
2010-07-29 13:35:17 +01:00
Simon MacMullen
ce21bbc3dc
git clone -b is quite new; live without it.
2010-07-28 18:01:56 +01:00
Simon MacMullen
1970651d02
Update the version of mochiweb used to today's.
2010-07-26 18:10:10 +01:00
Marek Majkowski
3bdf9f2700
bug21808 merged into default (updated readme)
2010-05-06 12:45:00 +01:00
Marek Majkowski
d4041990c3
Mentioned default port number
2010-05-06 12:44:08 +01:00
Tony Garnock-Jones
fc699da102
Add RUNTIME_DEPS
2010-03-08 16:15:45 +13:00
Tony Garnock-Jones
d11a8be984
Add echo-revision target
2010-03-08 02:56:12 +00:00
Paul Jones
23e1a40b9a
Updates to README and .app file
2009-10-19 09:02:32 +01:00
Tony Garnock-Jones
0ca26e4787
Avoid blowing away our svn checkout on clean. Instead, copy it on build.
2009-08-25 11:14:51 +01:00
Tony Garnock-Jones
0daaa12a6e
Add support for a global fallback handler; use it for the http2 examples.
2009-08-21 18:01:16 +01:00
Tony Garnock-Jones
427636406d
Set mochiweb default port to 55672.
2009-08-21 17:11:56 +01:00
Tony Garnock-Jones
4d8ee8413f
Update .hgignore for ./build and ./dist directories
2009-08-21 17:04:48 +01:00
Paul Jones
06e8a716dd
Renamed to rabbit-mochiweb
2009-08-05 09:23:15 +01:00
Paul Jones
f806cc6b04
Rename from mod_http to rabbitmq-http-server
2009-08-04 14:09:10 +01:00
Paul Jones
3e9017ef78
Removed start script
2009-08-04 13:24:37 +01:00
Paul Jones
48128e1085
Added additional registration methods; removed hard dependence on crypto
2009-08-04 12:42:51 +01:00
Ben Hood
9bde1254da
Merged registry functionality into default
2009-08-04 10:39:45 +01:00
Paul Jones
cf285ddc54
Added Makefile for Mochiweb dependency
2009-08-04 10:15:34 +01:00
Paul Jones
f9c3abea8d
Cleanup of mod_http - start of usable test cases
2009-08-04 10:07:16 +01:00
Paul Jones
5f7887bc3e
New variant of mod_http that uses a registry and removes RPC integration
2009-08-03 14:00:16 +01:00
Ben Hood
fc0f39a520
Added dependency on include file in Makefile
2009-07-23 12:20:58 +01:00
Ben Hood
97cf1bfe69
Merger
2009-07-22 16:56:19 +01:00
Ben Hood
ce36280ab1
Paramterized the registration of the docroot to the registering module's name
2009-07-22 16:55:08 +01:00
Ben Hood
681576250f
Changed the request handling so that a web app has to register itself under a particular path
2009-07-22 16:28:32 +01:00
Ben Hood
de412251c6
Added License file
2009-07-22 13:35:26 +01:00
Ben Hood
3133dc2e33
Added the option to run mod_http in development mode; added some documentation
2009-07-15 16:08:31 +01:00
Ben Hood
c6a11b6799
Added diagnostic to docroot processing
2009-07-15 14:11:20 +01:00
Ben Hood
21d2ade242
Removed debug statement
2009-07-15 12:27:42 +01:00
Ben Hood
ea8cb93904
Fixed hardcoded RPC path
2009-07-15 12:13:16 +01:00
Ben Hood
7f07cf5b71
Install now copies rfc4627 app to the server
2009-07-15 12:04:34 +01:00