Skip to content

Commit 04de815

Browse files
authored
Try and fix config for unpriv nginx (#85)
1 parent 3d59564 commit 04de815

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Charts/web-conexs/templates/api_deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
- name: data-pv-volume
2020
persistentVolumeClaim:
2121
claimName: data-pv-claim
22+
- emptyDir: {}
23+
name: tmp
2224
containers:
2325
- name: {{ include "web-conexs.fullname" . }}-api
2426
image: "{{ .Values.api.deployment.image.repository }}:{{ .Values.api.deployment.image.tag | default .Chart.AppVersion }}"
@@ -55,6 +57,8 @@ spec:
5557
value: {{ .Values.api.authz.key}}
5658
- name: LDAP_ATTR_VALUE
5759
value: {{ .Values.api.authz.value}}
60+
- name: MPLCONFIGDIR
61+
value: /tmp
5862
- name: PMG_MAPI_KEY
5963
valueFrom:
6064
secretKeyRef:

web-conexs-client/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN pnpm vite build
1919
From docker.io/nginxinc/nginx-unprivileged:alpine3.21-slim as host
2020

2121
COPY --from=build-web /client/dist/ /usr/share/nginx/html
22-
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
22+
COPY ./nginx/default.conf /etc/nginx/nginx.conf
2323

2424
EXPOSE 8081
2525
ENTRYPOINT ["nginx","-g", "daemon off;"]

web-conexs-client/nginx/default.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
pid /tmp/nginx.pid;
1+
worker_processes 3;
2+
pid /tmp/nginx.pid; # Changed from /var/run/nginx.pid
3+
error_log /var/log/nginx/error.log;
4+
events {
5+
worker_connections 10240;
6+
}
27

38
http {
49
include mime.types;

0 commit comments

Comments
 (0)