Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for
| import json | |
| import urllib | |
| import urllib2 | |
| url = 'http://localhost:8888/ansible' | |
| def post(category, data): | |
| data['category'] = category | |
| invocation = data.pop('invocation', None) |
| # This number should be, at maximum, the number of CPU cores on your system. | |
| # (since nginx doesn't benefit from more than one worker per CPU.) | |
| worker_processes 8; | |
| # Determines how many clients will be served by each worker process. | |
| # (Max clients = worker_connections * worker_processes) | |
| # "Max clients" is also limited by the number of socket connections available on the system (~64k) | |
| # run ss -s and u'll see a timewait param | |
| # The reason for TIMED_WAIT is to handle the case of packets arriving after the socket is closed. |
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="robots" content="noodp, noydir" /> | |
| <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
| <link rel="canonical" href="http://mysite.com/" /> | |
| <link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
| ################################################################### | |
| # (C)opyright 2012, Kameron Kenny, ExactTarget | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Put this file in .chef/plugins/knife/ |
| #!/usr/bin/env python | |
| # with help and inspiration from | |
| # * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure) | |
| # * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL | |
| # * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html | |
| import sys | |
| import base64 | |
| import struct |