add internal nginx config

This commit is contained in:
2026-06-20 18:18:09 -05:00
parent a26a3efb24
commit 08789b8566
5 changed files with 27 additions and 8 deletions
-1
View File
@@ -79,7 +79,6 @@
];
locations."/" = {
# Default k3s port?
proxyPass = "http://127.0.0.1:30080";
extraConfig = ''
@@ -25,7 +25,15 @@ spec:
- name: static-files
mountPath: /var/nimh-static/site
readOnly: true
- name: nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
volumes:
- name: static-files
configMap:
name: nimh-static-files
- name: nginx-config
configMap:
name: nimh-static-nginx
@@ -4,3 +4,4 @@ resources:
- configmap.yaml
- deployment.yaml
- service.yaml
- nginx.yaml
@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nimh-static-nginx
data:
default.conf: |
server {
listen 80;
root /var/nimh-static/site;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}