Permalink
Browse files

prepare for opensource

  • Loading branch information...
0 parents commit 931a8022744666189150dcd2753e6ff1046c7f6d @JoeGermuska JoeGermuska committed May 29, 2012
Showing 935 changed files with 149,968 additions and 0 deletions.
@@ -0,0 +1,2 @@
+*.pyc
+gzip
52 LICENSE
@@ -0,0 +1,52 @@
+The MIT License
+
+Copyright (c) 2012 The Chicago Tribune
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------
+This software uses portions of the Django project:
+
+Copyright (c) Django Software Foundation and individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Django nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 README
@@ -0,0 +1,5 @@
+This is a python-flask application which manages live-blog style stories in Tribune Co's content management system. If you don't have access to a Tribune Co CMS, you are not likely to get much use out of this, but feel free to peek at the code. This should be seen as a snapshot of work-in-progress, and not necessarily a perfect example of best-practices for development.
+
+Read http://blog.apps.chicagotribune.com/2012/05/29/covering-the-nato-summit/ for some more about this and a related tool.
+
+See LICENSE for license information.
@@ -0,0 +1,44 @@
+<VirtualHost *:80>
+ServerName layercake.tribapps.com
+ServerAlias www.layercake.tribapps.com
+
+ SetEnv DEPLOYMENT_TARGET production
+
+ SetEnvIf X-Forwarded-For "^163\.192\..*\..*" trib
+ <Location />
+ Order Deny,Allow
+ Allow from all
+ </Location>
+
+ <Directory /home/newsapps/sites/layercake/repository/app>
+ AuthType Basic
+ AuthName "Authorized Access Only"
+ AuthUserFile /mnt/apps/passwords
+ Require valid-user
+ </Directory>
+
+ Redirect permanent /favicon.ico http://media.apps.chicagotribune.com/favicon.ico
+
+ WSGIScriptAlias / /home/newsapps/sites/layercake/repository/app/production.wsgi
+
+ Redirect permanent /favicon.ico http://media.apps.chicagotribune.com/favicon.ico
+
+ ErrorLog /home/newsapps/logs/layercake.error.log
+ LogLevel warn
+
+ SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" is-forwarder
+ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
+ LogFormat "[%h] %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio2
+ CustomLog /home/newsapps/logs/layercake.access.log combinedio env=is-forwarder
+ CustomLog /home/newsapps/logs/layercake.access.log combinedio2 env=!is-forwarder
+
+ ServerSignature Off
+
+ RewriteEngine on
+ # canonical hostname
+ RewriteCond %{HTTP_HOST} ^www.layercake.chicagotribune.com [NC]
+ RewriteRule ^/(.*) http://layercake.tribapps.com/$1 [L,R]
+
+ RewriteCond %{REQUEST_URI} /maintenance.html$
+ RewriteRule $ / [R=302,L]
+</VirtualHost>
@@ -0,0 +1,34 @@
+<VirtualHost *:80>
+ServerName layercake.tribapps.com
+ServerAlias www.layercake.tribapps.com
+
+ SetEnvIf X-Forwarded-For "^163\.192\..*\..*" trib
+ <Location /> # until launch
+ Order Deny,Allow
+ # Allow from all
+ Allow from env=trib
+ </Location>
+
+ Redirect permanent /favicon.ico http://media.apps.chicagotribune.com/favicon.ico
+
+ ErrorLog /home/newsapps/logs/layercake.error.log
+ LogLevel warn
+
+ SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" is-forwarder
+ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
+ LogFormat "[%h] %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio2
+ CustomLog /home/newsapps/logs/layercake.access.log combinedio env=is-forwarder
+ CustomLog /home/newsapps/logs/layercake.access.log combinedio2 env=!is-forwarder
+
+ ServerSignature Off
+
+ RewriteEngine on
+ # canonical hostname
+ RewriteCond %{HTTP_HOST} ^layercake.tribapps.com [NC]
+ RewriteRule ^/(.*) http://layercake.tribapps.com/$1 [L,R]
+
+ DocumentRoot /home/newsapps/sites/layercake/repository/app/static
+
+ RewriteCond %{REQUEST_URI} !/maintenance.html$
+ RewriteRule $ /maintenance.html [R=302,L]
+</VirtualHost>
@@ -0,0 +1,38 @@
+<VirtualHost *:80>
+ ServerName layercake.beta.tribapps.com
+ ServerAlias www.layercake.beta.tribapps.com
+
+ SetEnv DEPLOYMENT_TARGET staging
+
+ <Location />
+ Order Deny,Allow
+ Allow from all
+ </Location>
+
+ <Directory /home/newsapps/sites/layercake/repository/app>
+ AuthType Basic
+ AuthName "Authorized Access Only"
+ AuthUserFile /etc/apache2/passwords
+ Require valid-user
+ </Directory>
+
+ WSGIScriptAlias / /home/newsapps/sites/layercake/repository/app/staging.wsgi
+
+ Redirect permanent /favicon.ico http://media-beta.tribapps.com/favicon.ico
+
+ ErrorLog /home/newsapps/logs/layercake.error.log
+ LogLevel warn
+
+ CustomLog /home/newsapps/logs/layercake.access.log combined
+
+ ServerSignature Off
+
+ RewriteEngine on
+
+ # canonical hostname
+ RewriteCond %{HTTP_HOST} ^www.layercake.beta.tribapps.com [NC]
+ RewriteRule ^/(.*) http://layercake.beta.tribapps.com/$1 [L,R]
+
+ RewriteCond %{REQUEST_URI} /maintenance.html$
+ RewriteRule $ / [R=302,L]
+</VirtualHost>
@@ -0,0 +1,37 @@
+<VirtualHost *:80>
+ServerName layercake.beta.tribapps.com
+ServerAlias www.layercake.beta.tribapps.com
+
+ <Location />
+ Order Deny,Allow
+ Allow from all
+ </Location>
+
+ <Directory /home/newsapps/sites/gallery/repository/app>
+ Order allow,deny
+ Allow from 163.192.0.0/16
+ Allow from 163.193.0.0/16
+ Allow from 163.194.0.0/16
+ </Directory>
+
+ Redirect permanent /favicon.ico http://media-beta.tribapps.com/favicon.ico
+
+ Alias /robots.txt /home/newsapps/sites/schools/repository/schools/assets/robots.txt
+
+ ErrorLog /home/newsapps/logs/layercake.error.log
+ LogLevel warn
+
+ CustomLog /home/newsapps/logs/layercake.access.log combined
+
+ ServerSignature Off
+
+ RewriteEngine on
+ # canonical hostname
+ RewriteCond %{HTTP_HOST} ^www.layercake.beta.tribapps.com [NC]
+ RewriteRule ^/(.*) http://layercake.beta.tribapps.com/$1 [L,R]
+
+ DocumentRoot /home/newsapps/sites/layercake/repository/assets/templates/
+
+ RewriteCond %{REQUEST_URI} !/maintenance.html$
+ RewriteRule $ /maintenance.html [R=302,L]
+</VirtualHost>
Oops, something went wrong.

0 comments on commit 931a802

Please sign in to comment.