basic-auth
This commit is contained in:
1 parent
0cbc11a949
commit
0a5301aba8
6 files changed
+49
-19
No files matched your search
@@ -86,4 +86,10 @@ function run-template-compose-app() {
|
||||
# echo $out | bat -l yaml
|
||||
}
|
||||
|
||||
function run-htpasswd() {
|
||||
: Generates htpasswd file
|
||||
: dev htpasswd
|
||||
openssl passwd -apr1 ${@}
|
||||
}
|
||||
|
||||
start_cli $@
|
||||
@@ -19,3 +19,4 @@ ingress:
|
||||
service: smartboi
|
||||
port: 8000
|
||||
useSecondaryDomain: true
|
||||
middleware: basic-auth-smartboi
|
||||
@@ -0,0 +1,21 @@
|
||||
{{ range $user, $pass := .Values.users }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: "secret-basic-auth-{{$user}}"
|
||||
type: kubernetes.io/basic-auth
|
||||
stringData:
|
||||
username: {{ $user }}
|
||||
password: {{ $pass }}
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: "basic-auth-{{$user}}"
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
basicAuth:
|
||||
secret: "secret-basic-auth-{{$user}}"
|
||||
{{ end }}
|
||||
@@ -1,9 +1,7 @@
|
||||
|
||||
|
||||
reverseProxy:
|
||||
home:
|
||||
port: "8123"
|
||||
ip: "192.168.0.20"
|
||||
yellow:
|
||||
port: "8123"
|
||||
ip: "192.168.0.23"
|
||||
home:
|
||||
port: "8123"
|
||||
ip: "192.168.0.20"
|
||||
yellow:
|
||||
port: "8123"
|
||||
ip: "192.168.0.23"
|
||||
@@ -1,17 +1,20 @@
|
||||
global:
|
||||
dns:
|
||||
internalPrefix: k3s.internal
|
||||
primary:
|
||||
domain: "internal"
|
||||
root: "k3s"
|
||||
secondary:
|
||||
domain: "local"
|
||||
root: "k3s"
|
||||
tls:
|
||||
enabled: false
|
||||
dns:
|
||||
internalPrefix: k3s.internal
|
||||
primary:
|
||||
domain: "internal"
|
||||
root: "k3s"
|
||||
secondary:
|
||||
domain: "local"
|
||||
root: "k3s"
|
||||
tls:
|
||||
enabled: false
|
||||
|
||||
reverseProxy: {}
|
||||
services: []
|
||||
tailScaleServices: []
|
||||
ns:
|
||||
argocd: plugin-argo-cd
|
||||
argocd: plugin-argo-cd
|
||||
|
||||
users:
|
||||
smartboi: "makingmoney"
|
||||
Reference in new issue
Block a user