christianlempa-boilerplates/kubernetes/templates/cm-and-secrets/nginx-http-cm.yml

28 lines
481 B
YAML
Raw Normal View History

2021-11-12 15:38:36 +01:00
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-http-cm
data:
2021-11-12 15:48:39 +01:00
# key: value
# file: |
# content
# ---
2021-11-12 15:38:36 +01:00
nginx.conf: |
user nginx;
worker_processes 1;
events {
worker_connections 10240;
}
http {
server {
listen 80;
server_name _;
location / {
2021-11-12 15:48:39 +01:00
root /usr/share/nginx/html;
index index.html index.htm;
2021-11-12 15:38:36 +01:00
}
2021-11-29 08:41:39 +01:00
location /test {
return 401;
}
2021-11-12 15:38:36 +01:00
}
}