Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
_() {
YEAR="1991"
echo "Github Username: "
read -r USERNAME
[ -z "$USERNAME" ] && exit 1
[ ! -d $YEAR ] && mkdir $YEAR
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 10.0.0.0/8
RemoteIPTrustedProxy 172.16.0.0/12
RemoteIPTrustedProxy 192.168.0.0/16
RemoteIPTrustedProxy 169.254.0.0/16
RemoteIPTrustedProxy 127.0.0.0/8
# CloudFront Global IPs
# https://blog.manabusakai.com/2016/11/nginx-realip-apache-remoteip/
RemoteIPTrustedProxy 120.52.22.96/27
@zeroiszero
zeroiszero / kubernetes-laravel.md
Last active September 2, 2019 09:44
Running Laravel in Kubernetes with path based routing using Ingress. Nginx and Apache configurations.

Kubernetes-Laravel

Background Info

To run different copies of Laravel with Kubernetes and each of these serve as a service for different purpose.

The routing of different services can be achieved by using path-based routing using Ingress.