Skip to content

Instantly share code, notes, and snippets.

View laurentbel's full-sized avatar

Laurent Bel laurentbel

  • Malteurop
  • Paris
View GitHub Profile
@laurentbel
laurentbel / !Loki nginx basic authentication.md
Last active December 31, 2023 15:33
Loki Nginx basic authentication

Loki secured with basic authentication using Nginx

Basic setup to protect loki with basic authentication using Nginx

@laurentbel
laurentbel / !Nginx Basic Auth.md
Last active September 21, 2024 12:05
Nginx reverse proxy with basic authentication

Nginx Basic Auth

A simple demo of using Nginx as a reverse proxy to add basic authentication.

@laurentbel
laurentbel / data lake warehouse hub.csv
Created March 14, 2020 16:54
Table to compare data lake, data warehouse and data hub
data lake data warehouse data hub
@laurentbel
laurentbel / aws-alb-oidc.php
Last active August 12, 2024 15:09
User info behind AWS ALB and OIDC in PHP
<?php
// Get user info
$user_info = json_decode(base64_decode(explode('.', apache_request_headers()['X-Amzn-Oidc-Data'])[1]));
?>
<h2>User Info : </h2>
<p>
First Name : <?php echo $user_info->given_name; ?><br/>
Last Name : <?php echo $user_info->family_name; ?><br/>
Email : <?php echo $user_info->email; ?><br/>