[Coquelicot] Base URL?
Lunar
lunar at anargeek.net
Fri Jul 26 11:06:22 CEST 2013
Jerome Charaoui:
> I'd like to set up Coquelicot in a reverse-proxy at
> https://example.com/some/path. However the program expects to reside at
> the root of the domain URL. Is there any chance that a configuration
> setting could be provided for this? Or maybe I missed something in the
> documentation?
I had a configuration setting for this at some point but I've lost it
when doing a complete overhaul of the startup system. We need to get
one back in.
In the meantime, feel free to patch along the following lines:
diff --git a/lib/coquelicot/app.rb b/lib/coquelicot/app.rb
index 181d318..1e71750 100644
--- a/lib/coquelicot/app.rb
+++ b/lib/coquelicot/app.rb
@@ -156,7 +156,9 @@ module Coquelicot
use ::Rack::ContentLength
use ::Rack::Chunked
use ::Rack::CommonLogger, $stderr
- run Application
+ map "/mypath" do
+ run Application
+ end
end.to_app
end
else
@@ -166,7 +168,9 @@ module Coquelicot
use ::Rack::ContentLength
use ::Rack::Chunked
use ::Rack::CommonLogger, $stderr
- run Application
+ map "/mypath" do
+ run Application
+ end
end.to_app
end
I only did a quick test, so it would actually be helpful if you would
report that it works good enough for you. :)
A more general patch would be even more appreciated!
--
Lunar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listes.potager.org/pipermail/coquelicot/attachments/20130726/61d7dfdb/attachment.pgp>
More information about the Coquelicot
mailing list