This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | upstream api_example_net { | |
| server api.example.net:4000; | |
| keepalive 600; | |
| } | |
| proxy_cache_path /var/cache/nginx/tag levels=1:2 keys_zone=tag:10m inactive=1d max_size=10g; | |
| server { | |
| listen 80; | |
| server_name api.example.net; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from jinja2 import Template | |
| import json | |
| import httplib2 | |
| import argparse | |
| TEMPLATE = """ | |
| user www-data; | |
| worker_processes 4; | |
| pid /run/nginx.pid; | |
| daemon off; |