Compare commits

...
2 Commits
Author SHA1 Message Date
pi-ux-ce 0b09d50e7f add before change
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
2026-08-04 16:05:14 +01:00
pi-ux-ce 9349bc5122 watcher struggling 2026-07-30 11:02:29 +01:00
2 changed files with 33 additions and 31 deletions
+30 -30
View File
@@ -4,8 +4,8 @@ metadata:
name: reverse-proxy
---
apiVersion: apps/v1
#kind: Deployment
kind: DaemonSet
kind: Deployment
#kind: DaemonSet
metadata:
name: reverse-proxy
namespace: reverse-proxy
@@ -21,9 +21,9 @@ spec:
labels:
app: reverse-proxy
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet # required when hostNetwork: true
#nodeName: kube-master
#hostNetwork: true
#dnsPolicy: ClusterFirstWithHostNet # required when hostNetwork: true
nodeName: kube-master
# Allows the sidecar to see and signal the Nginx process
shareProcessNamespace: true
containers:
@@ -67,27 +67,27 @@ spec:
cpu: 250m
memory: 250Mi
- name: watcher
image: alpine:latest
command: ["/bin/sh", "-c"]
args:
- |
# - name: watcher
# image: alpine:latest
# command: ["/bin/sh", "-c"]
# args:
# - |#
apk add --no-cache inotify-tools;
# Ensure file exists so inotify doesn't fail
touch /etc/nginx/blacklisted.d/blacklisted-sessions.conf;
echo "Watcher started on /etc/nginx/blacklisted.d/blacklisted-sessions.conf"
# apk add --no-cache inotify-tools;
# # Ensure file exists so inotify doesn't fail
# touch /etc/nginx/blacklisted.d/blacklisted-sessions.conf;
# echo "Watcher started on /etc/nginx/blacklisted.d/blacklisted-sessions.conf"
while inotifywait -e modify /etc/nginx/blacklisted.d/blacklisted-sessions.conf; do
echo "Change detected, waiting 5 seconds to batch updates..."
sleep 5;
# while inotifywait -e modify /etc/nginx/blacklisted.d/blacklisted-sessions.conf; do
# echo "Change detected, waiting 5 seconds to batch updates..."
# sleep 5;
# Check if Nginx is actually running before signaling
if pgrep nginx > /dev/null; then
echo "Reloading Nginx..."
pkill -HUP nginx
fi
done
# # Check if Nginx is actually running before signaling
# if pgrep nginx > /dev/null; then
# echo "Reloading Nginx..."
# pkill -HUP nginx
# fi
# done
volumeMounts:
- name: blacklisted-memory-volume
@@ -95,12 +95,12 @@ spec:
tolerations:
# these tolerations are to have the daemonset runnable on control plane nodes
# remove them if your control plane nodes should not run pods
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
#- key: node-role.kubernetes.io/control-plane
# operator: Exists
# effect: NoSchedule
#- key: node-role.kubernetes.io/master
# operator: Exists
# effect: NoSchedule
volumes:
- name: reverse-proxy-log
@@ -193,6 +193,6 @@ spec:
type: LoadBalancer
externalTrafficPolicy: Local
#externalTrafficPolicy: Local
selector:
app: reverse-proxy
+3 -1
View File
@@ -13,6 +13,7 @@ nginx_sites = {
}
bookstack = {
enabled = false
# service = "webserver.bookstack.svc"
service = "bookstack-svc.bookstack.svc"
proxy_cache = false
@@ -195,6 +196,7 @@ client_max_body_size 20m;
enabled = false
}
qbittorrent = {
enabled = false
service = "qbittorrent-svc.servarr.svc:8080"
geoip_allow = ["FR", "GB", "NL"]
@@ -476,7 +478,7 @@ client_max_body_size 20m;
service = "emailproxy-svc.paper.svc:80"
}
tdarr = {
#enabled = false
enabled = false
service = "tdarr-svc.servarr.svc:8265"
extra-value-location = <<EOT
proxy_set_header Connection "upgrade";