Skip to content

Commit a2fccb9

Browse files
committed
[ADD] nginx conf
1 parent 98efe92 commit a2fccb9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ include "adhoc-defaultbackend.fullname" . }}-nginx-config
5+
data:
6+
nginx.conf: |
7+
events {
8+
worker_connections 1024;
9+
}
10+
http {
11+
include /etc/nginx/mime.types;
12+
default_type application/octet-stream;
13+
14+
server {
15+
listen 80;
16+
server_name _;
17+
root /usr/share/nginx/html;
18+
19+
location / {
20+
try_files $uri $uri/ /index.html;
21+
}
22+
23+
location ~ ^/(.*)$ {
24+
try_files /index.html =404;
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)