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

@ -23,6 +23,8 @@ in
enableACME = true;
extraConfig = ''
add_header Strict-Transport-Security max-age=15768000;
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "mta-sts.${config.networking.domain}"} warn;
access_log syslog:server=unix:/dev/log vhost_combined;
'';
locations."= /.well-known/mta-sts.txt" = {
alias = "/srv/http/mta-sts.txt";
@ -41,6 +43,8 @@ in
extraConfig = ''
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header Strict-Transport-Security max-age=15768000;
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "www.${config.networking.domain}"} warn;
access_log syslog:server=unix:/dev/log vhost_combined;
'';
locations = {
"/" = {
@ -104,6 +108,10 @@ in
kTLS = true;
forceSSL = true;
enableACME = true;
extraConfig = ''
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "staging.${config.networking.domain}"} warn;
access_log syslog:server=unix:/dev/log vhost_combined;
'';
locations = {
"/" = {
basicAuthFile = config.age.secrets.www-staging-htpasswd.path;