Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: russell muetzelfeldt <russm-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: access to Rainbows! config from within the application
Date: Fri, 3 Sep 2010 12:26:03 +1000	[thread overview]
Message-ID: <72D036D6-8B60-4CC4-A311-C6F3F56424CA@slofith.org> (raw)

Hi All,

Is there any way to read the server configuration from within the application that's being hosted?

I'm about to add a Rainbows!-hosted file upload component to an existing application. At the moment I've got duplication between the app ("Note: maximum attachment size is 200MB") and rainbows.rb ("client_max_body_size 200*1024*1024") and am wondering if there's any way for the app to know what client_max_body_size the server is configured for so I can display a human-friendly version of that on the attachment page.

(please cc: replies as I'm not subscribed to the list)


cheers

Russell

_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


             reply	other threads:[~2010-09-03  6:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03  2:26 russell muetzelfeldt [this message]
     [not found] ` <72D036D6-8B60-4CC4-A311-C6F3F56424CA-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
2010-09-03  6:28   ` Eric Wong
     [not found]     ` <20100903062826.GA28607-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2010-09-03  6:55       ` russell muetzelfeldt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72D036D6-8B60-4CC4-A311-C6F3F56424CA@slofith.org \
    --to=russm-wwwmktv0clvafugrpc6u6w@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this inbox:

	../../rainbows.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).