From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.5 required=3.0 tests=FROM_LOCAL_NOVOWEL, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: russell muetzelfeldt Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: access to Rainbows! config from within the application Date: Fri, 3 Sep 2010 12:26:03 +1000 Message-ID: <72D036D6-8B60-4CC4-A311-C6F3F56424CA@slofith.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283493794 4210 80.91.229.12 (3 Sep 2010 06:03:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 06:03:14 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Fri Sep 03 08:03:13 2010 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Virus-Scanned: amavisd-new at bluefish.com.au X-Mailer: Apple Mail (2.1081) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:125 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OrPMm-0001uu-Lw for gclrrg-rainbows-talk@m.gmane.org; Fri, 03 Sep 2010 08:03:12 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 443F81858387; Fri, 3 Sep 2010 02:03:09 -0400 (EDT) Received: from bfg-xserve-1.bluefish.com.au (bfg-xserve-1.bluefish.com.au [203.89.242.132]) by rubyforge.org (Postfix) with ESMTP id EC028185837F for ; Fri, 3 Sep 2010 02:01:37 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by bfg-xserve-1.bluefish.com.au (Postfix) with ESMTP id D5B3298F8E5 for ; Fri, 3 Sep 2010 12:24:56 +1000 (EST) Received: from bfg-xserve-1.bluefish.com.au ([127.0.0.1]) by localhost (bfg-xserve-1.bluefish.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N0dPib5P7680 for ; Fri, 3 Sep 2010 12:24:56 +1000 (EST) Received: from [192.168.1.115] (203-206-142-233.perm.iinet.net.au [203.206.142.233]) by bfg-xserve-1.bluefish.com.au (Postfix) with ESMTPSA id 1EFE298F8DA for ; Fri, 3 Sep 2010 12:24:56 +1000 (EST) 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