Skip to content

Instantly share code, notes, and snippets.

View ddragosd's full-sized avatar

ddragosd

  • Adobe System
  • San Jose, CA
View GitHub Profile
@mrluanma
mrluanma / api.example.net.conf
Created September 9, 2014 08:27
cache POST request with Nginx
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;
@zircote
zircote / nginx-marathon.py
Last active November 12, 2015 19:01
Marathon Config writer for NGINX
from jinja2 import Template
import json
import httplib2
import argparse
TEMPLATE = """
user www-data;
worker_processes 4;
pid /run/nginx.pid;
daemon off;