Skip to content

Instantly share code, notes, and snippets.

View wkrueger's full-sized avatar
😀

Willian wkrueger

😀
View GitHub Profile
@thelinuxlich
thelinuxlich / assertHTTP.ts
Last active February 23, 2024 19:45
A assert on steroids for web services
import { getReasonPhrase } from 'http-status-codes'
export type ALLOWED_HTTP_STATUS_CODES =
| '400'
| '401'
| '403'
| '404'
| '500'
| '501'
| '502'
@turtlesoupy
turtlesoupy / nginx.conf
Created July 8, 2012 21:16
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;