feat(k8s/blog): add static blog served via git-sync + nginx

This commit is contained in:
2026-05-11 22:21:36 +03:00
parent 85b5328dd1
commit 5b47122672
8 changed files with 265 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: blog-nginx-config
namespace: blog
data:
default.conf: |
server {
listen 8080;
server_name _;
root /git/current;
index index.html;
location /health {
access_log off;
return 200 "OK";
add_header Content-Type text/plain;
}
location ~ /\.git {
deny all;
return 404;
}
location / {
try_files $uri $uri/ =404;
}
}