Commit Graph

570 Commits

Author SHA1 Message Date
Michael Klishin 0097a449a6 Update rabbitmq-components.mk 2017-02-08 16:38:26 +03:00
Michael Klishin 755c461ef7 Make sure we return a tuple of options here, references #25, #26 2017-02-08 11:53:20 +03:00
Michael Klishin 91a709538b Merge branch 'stable'
Conflicts:
	test/rabbit_web_dispatch_SUITE.erl
2017-02-07 13:24:26 +03:00
Loïc Hoguin da5f4ee0f0 Parse the ip option when provided as a string 2017-02-07 11:06:30 +01:00
Michael Klishin f556b2d733 merge branch 'stable' 2017-02-06 19:52:31 +03:00
Michael Klishin 25d436bef9 Update rabbitmq-components.mk 2017-02-06 19:24:05 +03:00
Jean-Sébastien Pédron 36915f9dee Update rabbitmq-components.mk 2017-02-02 17:17:25 +01:00
Michael Klishin 4321a94452 Merge branch 'stable'
Conflicts:
	Makefile
2017-02-01 14:15:57 +03:00
Michael Klishin 20181b74ed Make sure `inets` is listed as a (provided) dependency
Otherwise standalone Mac builds don't include it and the `httpd_util`
module isn't available.

Per discussion with @dumbbell.
2017-02-01 14:14:49 +03:00
Michael Klishin 2844a035d4 merge branch 'stable' 2017-01-31 18:20:29 +03:00
Michael Klishin fdd0a10d3b Update rabbitmq-components.mk 2017-01-31 18:06:39 +03:00
Jean-Sébastien Pédron c7029f604d Use `priv_file` and `priv_dir` cowboy_static options
Before, we computed the absolute path of a file inside an Erlang
application, and used the `file` and `dir` options of cowboy_static.

Now, we also handle the case where the file in the application (owning
the specified module) priv directory. In this case, we rely on the
`priv_file` and `priv_dir` options: cowboy_static will automatically
locate the application's `priv` directory and Do The Right Thing.

In the future, this will allow us to serve static files from Erlang
application .ez archives.

[#138338155]
2017-01-26 15:52:35 +01:00
Jean-Sébastien Pédron bcab5807bc Makefile: Remove Cowboy version pinning
There is a global pinning in rabbitmq-components.mk.
2017-01-25 17:01:15 +01:00
Jean-Sébastien Pédron 38e06ca052 Travis CI: Import changes from rabbitmq-auth-backend-amqp 2016-12-12 15:21:43 +01:00
Jean-Sébastien Pédron 7f36c86327 Merge branch 'stable' 2016-12-09 19:27:59 +01:00
Jean-Sébastien Pédron a4d7bcf136 Update rabbitmq-components.mk 2016-12-08 19:14:54 +01:00
Jean-Sébastien Pédron dfe4227046 Travis CI: Use Ubuntu Trusty image to have access to Elixir
Also, required `sudo` so a VM is used instead of a container. This makes
the test much longer, but allows us to install non-whitelisted packages
such as xsltproc.
2016-12-08 17:54:20 +01:00
Jean-Sébastien Pédron bafef76343 Merge branch 'stable' 2016-12-08 12:41:49 +01:00
Jean-Sébastien Pédron d53219936e rabbit_web_dispatch_registry: Fix variable shadowing
[#135706167]
2016-12-08 12:41:22 +01:00
Michael Klishin b4df1503a4 Merge branch 'stable' 2016-12-07 23:01:48 +03:00
Jean-Sébastien Pédron 04ce5464fd rabbit_web_dispatch_registry: Fix listener (un)registrations
... when a listener is bound to multiple IP addresses.

This is the case when a listener is configured to listen on all
interfaces, and IPv4's `0.0.0.0` and IPv6's `::` are reported
separately. It happens on *BSD and Linux with `net.ipv6.bindv6only=1` at
least.
2016-12-07 17:26:16 +01:00
Jean-Sébastien Pédron 07619d6935 Merge branch 'stable' 2016-12-07 16:07:27 +01:00
Jean-Sébastien Pédron 938b0d401c Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.

[#130992027]
2016-12-06 17:01:55 +01:00
Michael Klishin 579503dc0b Merge branch 'stable' 2016-12-06 17:48:05 +03:00
Loïc Hoguin a51b59a3f9 Register Web listeners as TCP listeners 2016-12-06 13:23:42 +01:00
Michael Klishin 0dc8d46a7d Merge remote-tracking branch 'origin/rabbitmq-management-236' into stable
Merging to switch to Cowboy REST.
2016-11-30 16:19:09 +03:00
Michael Klishin 4c9901e356 Merge branch 'stable' 2016-11-29 21:21:49 +03:00
Michael Klishin 451ed80b45 Update rabbitmq-components.mk 2016-11-29 20:59:43 +03:00
Jean-Sébastien Pédron ea38718af7 Merge branch 'stable' 2016-11-25 11:50:48 +01:00
Jean-Sébastien Pédron 4db9fef90e Update rabbitmq-components.mk 2016-11-25 10:51:04 +01:00
Jean-Sébastien Pédron c659861c38 Merge branch 'stable' 2016-11-25 10:39:41 +01:00
Jean-Sébastien Pédron 373c2598e9 Update rabbitmq-components.mk 2016-11-25 10:08:25 +01:00
kjnilsson 633d9dc7bb Fix bad content-length on 404 responses 2016-11-24 15:32:07 +00:00
Jean-Sébastien Pédron 2ed6b91e43 Merge branch 'stable' into rabbitmq-management-236 2016-11-24 12:13:05 +01:00
Jean-Sébastien Pédron 1830124ce7 Merge branch 'stable' 2016-11-24 10:43:07 +01:00
Jean-Sébastien Pédron ea6cde2811 Add rabbitmq_ct_client_helpers to TEST_DEPS 2016-11-24 10:42:10 +01:00
Jean-Sébastien Pédron 279f8a86bd Update rabbitmq-components.mk 2016-11-23 18:06:09 +01:00
Gerhard Lazu 3a754f93ba Merge branch 'stable' 2016-11-22 17:04:38 +00:00
Gerhard Lazu 04ae34cb38 Update erlang.mk 2016-11-22 16:20:45 +00:00
Gerhard Lazu 08da25272e Update rabbitmq-components.mk 2016-11-22 16:16:45 +00:00
Loïc Hoguin 83b2f26ca7 Fix bad content-length on 404 responses 2016-11-15 18:09:34 +02:00
Jean-Sébastien Pédron 79cfabd2b3 Update erlang.mk 2016-11-14 11:59:28 +01:00
Jean-Sébastien Pédron 459e450bb5 Update rabbitmq-components.mk 2016-11-10 16:56:57 +01:00
Loïc Hoguin 5830d54f54 Switch JSON library to JSX 2016-11-08 14:27:42 +02:00
Jean-Sébastien Pédron 72b4930a79 Merge branch 'stable' 2016-09-27 16:36:21 +02:00
Jean-Sébastien Pédron 3d80feb9c5 Merge branch 'stable' into rabbitmq-management-236 2016-09-27 16:36:08 +02:00
Jean-Sébastien Pédron d67d90639f rabbit_web_dispatch_SUITE: Run teardown steps at the end of the suite
Also, send notification for testcase start/end.
2016-09-27 16:35:00 +02:00
Jean-Sébastien Pédron 76c64caa50 Merge branch 'stable' into rabbitmq-management-236 2016-09-27 16:23:49 +02:00
Jean-Sébastien Pédron f8ace52fd5 rabbit_web_dispatch_SUITE: Start inets where we need it
Before this patch, inets was started during the suite setup on the
common_test control node, but we used it on the started broker. This
remained unnoticed while the plugin was based on webmachine and mochiweb
which started inets too.

After the move to Cowboy, inets is not started anymore on the broker so
we need to explicitely start it.
2016-09-27 16:21:51 +02:00
Jean-Sébastien Pédron 9d7f649d42 Merge branch 'stable' into rabbitmq-management-236 2016-09-27 12:48:25 +02:00
Jean-Sébastien Pédron 1adc815104 Merge branch 'stable' 2016-09-23 16:32:46 +02:00
Jean-Sébastien Pédron 08c4e72761 Update rabbitmq-components.mk 2016-09-23 11:23:11 +02:00
Jean-Sébastien Pédron e281b67779 Update erlang.mk 2016-09-22 17:57:20 +02:00
Jean-Sébastien Pédron 5943c36c94 rabbitmq_web_dispatch.app: Depend on rabbit_common and rabbit 2016-09-20 12:59:42 +02:00
Jean-Sébastien Pédron b6d713c2b6 Makefile: Explicitely list all DEPS
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.

[#130086871]
2016-09-20 12:59:22 +02:00
Jean-Sébastien Pédron 3880629ab5 Update erlang.mk 2016-09-20 12:57:03 +02:00
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