nginx/pub.solar: disable logging for homepage #117

Merged
b12f merged 1 commit from privacy/website-no-logging into main 2024-02-25 18:10:30 +00:00

View file

@ -9,6 +9,12 @@
"www.pub.solar" = {
enableACME = true;
addSSL = true;
extraConfig = ''
error_log /dev/null;
b12f marked this conversation as resolved Outdated
error_log /dev/null;
``` error_log /dev/null; ```
access_log /dev/null;
b12f marked this conversation as resolved Outdated
access_log /dev/null;
``` access_log /dev/null; ```
'';
locations."/" = {
extraConfig = ''
return 301 https://pub.solar$request_uri;
@ -21,6 +27,11 @@
enableACME = true;
forceSSL = true;
extraConfig = ''
error_log /dev/null;
access_log /dev/null;
'';
locations = {
# serve base domain pub.solar for mastodon.pub.solar
# https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/