caddy: send log to stdout for OVH LDP
This commit is contained in:
@@ -40,9 +40,13 @@
|
||||
{% endif %}
|
||||
|
||||
log waf {
|
||||
format json
|
||||
format {{ site.log_format | default(caddy_sites_defaults.log_format) }}
|
||||
include "http.handlers.waf"
|
||||
{% if site.log_to_file | default(caddy_sites_defaults.log_to_file) %}
|
||||
output file {{ caddy_log_dir }}/waf.log
|
||||
{% else %}
|
||||
output stdout
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,8 +262,13 @@
|
||||
}
|
||||
|
||||
log {
|
||||
format json
|
||||
format {{ site.log_format | default(caddy_sites_defaults.log_format) }}
|
||||
level INFO
|
||||
{% if site.log_to_file | default(caddy_sites_defaults.log_to_file) %}
|
||||
output file {{ caddy_log_dir }}/site_{{ site.id }}.log
|
||||
{% else %}
|
||||
output stdout
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@ LimitNOFILE=1048576
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier={{ caddy_my_name }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user