Skip to content

Instantly share code, notes, and snippets.

View blafasel42's full-sized avatar

Gaylord Aulke blafasel42

View GitHub Profile
@blafasel42
blafasel42 / initkube.sh
Created June 24, 2021 12:00
set KUBECONFIG to include all config files in ~/.kube
export KUBECONFIG=$(find ~/.kube -mindepth 1 -maxdepth 1 -type f -name config* -printf '%h/%f:')
@blafasel42
blafasel42 / AuthController.php
Created July 6, 2020 19:53
Controlle for Nginx sub request authentication
<?php
namespace App\Controller;
use ...
/**
* Class AuthenticationController
*
* @package User\UserBundle\Controller
security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
...
firewalls:
# This firewall is used to handle the actual login and is used as an endpoint for SSO-Proxy.
authentication:
pattern: ^/(auth|login|logout)
error_log /var/log/nginx/error.log debug;
events { }
http {
proxy_cache_path cache/ keys_zone=auth_cache:1m;
# The application listens on port 9000 as implemented
# in service.py.
upstream backend {