Added some helper things for testing

This commit is contained in:
Dreaded_X 2025-04-07 23:11:15 +02:00
parent 01457a185f
commit fe2cc87c39
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 31 additions and 0 deletions

10
helper/k8s.yaml Normal file
View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: authelia-acl
annotations:
config.huizinga.dev/fragment: authelia-acl
data:
rules: |
- domain: "*.tunnel.huizinga.dev"
policy: one_factor

21
helper/server.py Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env python3
import http.server as SimpleHTTPServer
import socketserver as SocketServer
import logging
PORT = 8000
class GetHandler(
SimpleHTTPServer.SimpleHTTPRequestHandler
):
def do_GET(self):
logging.error(self.headers)
SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
Handler = GetHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
httpd.serve_forever()