docs: create DevOps/Kubernetes/Helm/manifests/configmap-conf
parent
64d120764d
commit
791b9106c9
|
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
title: configmap-conf
|
||||||
|
description:
|
||||||
|
published: true
|
||||||
|
date: 2023-11-07T15:24:00.435Z
|
||||||
|
tags:
|
||||||
|
editor: markdown
|
||||||
|
dateCreated: 2023-11-07T15:24:00.435Z
|
||||||
|
---
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: openresty-conf
|
||||||
|
data:
|
||||||
|
default.conf: |
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/local/openresty/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/local/openresty/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue