Files
myceliumcloud-examples/examples/nginx-mycelium/nginx-configmap.yaml

24 lines
561 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-mycelium-config
data:
default.conf: |
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /index.html {
expires off;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
}
}