mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
fix: set log mount dir to /var/log/nginx
This commit is contained in:
@@ -4,12 +4,12 @@ controller:
|
||||
config:
|
||||
# Print access log to file instead of stdout
|
||||
# Separating acces logs from the rest
|
||||
access-log-path: "/data/access.log"
|
||||
error-log-path: "/data/error.log"
|
||||
access-log-path: "/var/log/nginx/access.log"
|
||||
error-log-path: "/var/log/nginx/error.log"
|
||||
log-format-escape-json: "true"
|
||||
extraVolumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
mountPath: /var/log/nginx
|
||||
extraVolumes:
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
@@ -19,13 +19,13 @@ controller:
|
||||
args:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- tail -n+1 -F /data/access.log
|
||||
- tail -n+1 -F /var/log/nginx/access.log
|
||||
imagePullPolicy: Always
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
- mountPath: /var/log/nginx
|
||||
name: data
|
||||
extraContainers:
|
||||
- name: stream-errorlog
|
||||
@@ -33,13 +33,13 @@ controller:
|
||||
args:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- tail -n+1 -F /data/error.log
|
||||
- tail -n+1 -F /var/log/nginx/error.log
|
||||
imagePullPolicy: Always
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
- mountPath: /var/log/nginx
|
||||
name: data
|
||||
allowSnippetAnnotations: true
|
||||
podAnnotations:
|
||||
|
||||
Reference in New Issue
Block a user