These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
| youtube.com##.ad-container | |
| youtube.com###player-ads | |
| youtube.com##.ytp-ad-overlay-container | |
| youtube.com#@#.overlay-ads | |
| youtube.com#@#.ddb | |
| youtube.com###feed-pyv-container | |
| youtube.com###feedmodule-PRO | |
| youtube.com###homepage-chrome-side-promo | |
| youtube.com###merch-shelf | |
| youtube.com###pla-shelf |
| if ($ssl_client_i_dn != "/C=US/O=CloudFlare, Inc./OU=Origin Pull/L=San Francisco/ST=California/CN=origin-pull.cloudflare.net") { | |
| return 403; | |
| } | |
| ssl_verify_client on; | |
| ssl_client_certificate /etc/nginx/ssl/origin-pull-ca.pem; | |
| ssl_verify_depth 1; | |
| if ($ssl_client_verify != "SUCCESS") { | |
| return 403; |
| # | |
| # Ignore requests for useless dot files generated by OS X Finder (WebDAV). | |
| # | |
| # This little hack speeds-up a WebDAV access from the Finder significantly and | |
| # also prevents messing storage with these annoying files. | |
| # | |
| location ~ \.(_.*|DS_Store|Spotlight-V100|TemporaryItems|Trashes|hidden)$ { | |
| access_log off; | |
| error_log off; |
These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
| #! /usr/bin/env python | |
| ### Settings ### | |
| # Files to include in the archive are selected by using include and ignore. | |
| # include and ignore are a list of regular expressions. Files will be packed | |
| # if they match any regular expression in include and do not match any | |
| # expression in ignore. All matching is done using Python re | |
| # (http://docs.python.org/py3k/library/re.html) using the search method so you | |
| # must explicitly write ^ if beginning of line matching is desired. The full |
| #!/bin/bash | |
| # | |
| # Copyright (C) 2010 Brady Miller <[email protected]> | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # |