Skip to content

Instantly share code, notes, and snippets.

View yangwe1's full-sized avatar

Wayne Yang yangwe1

View GitHub Profile
@yangwe1
yangwe1 / haproxy.cfg
Created October 31, 2019 03:47 — forked from techotaku/haproxy.cfg
HAProxy to Nginx (Web + V2Ray WebSocket) + OpenConnect + SSH + ShadowsocksR (TLS OBFS)
defaults
timeout connect 5s
timeout client 24h
timeout server 24h
global
log /dev/log local0
frontend ssl
log global
@yangwe1
yangwe1 / how-to-install-telegram-send
Created October 29, 2019 02:12 — forked from CHERTS/how-to-install-telegram-send
Fail2ban + Telegram using telegram-send
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.9 (jessie)
Release: 8.9
Codename: jessie
Installing telegram-send
# pip install telegram-send
@yangwe1
yangwe1 / nginx.conf
Created December 29, 2015 08:09 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048