send nginx log to journal
Some checks failed
Test Nix flake / Test nix flake (push) Has been cancelled

This commit is contained in:
XenGi 2026-10-30 23:12:25 +01:00
commit 6022b14de8
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -1,5 +1,8 @@
{ config, ... }:
let
fqdn = "dav.${config.networking.domain}";
in
{
imports = [
../../services/nginx.nix
@ -9,15 +12,20 @@
services = {
baikal = {
enable = true;
virtualHost = "dav.${config.networking.domain}";
virtualHost = fqdn;
};
nginx.virtualHosts."dav.${config.networking.domain}" = {
nginx.virtualHosts.${fqdn} = {
default = true;
quic = true;
kTLS = true;
forceSSL = true;
enableACME = true;
extraConfig = ''
proxy_set_header Forwarded "$proxy_forwarded_for_element;$proxy_forwarded_by_element;host=$host;proto=$scheme";
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] fqdn} warn;
access_log syslog:server=unix:/dev/log vhost_combined;
'';
};
};
}