Skip to content

Commit

Permalink
added nginx conf configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 committed Jan 11, 2024
1 parent 401b381 commit b61976c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
path: /
port: http
volumeMounts:
- name: config-volume
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
{{- if .Values.configMap.enabled }}
- name: config-volume
mountPath: /usr/share/nginx/html/slides
Expand All @@ -38,6 +41,9 @@ spec:
mountPath: {{ .mountPath }}
{{- end }}
volumes:
- name: config-volume
configMap:
name: nginx-config
{{- if .Values.configMap.enabled }}
- name: config-volume
configMap:
Expand Down
File renamed without changes.
36 changes: 36 additions & 0 deletions helm/templates/slides-configmap copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}

0 comments on commit b61976c

Please sign in to comment.