nginx/pub.solar: disable logging for homepage

This commit is contained in:
Benjamin Yule Bädorf 2024-02-25 17:01:34 +01:00
parent 50fa98eebb
commit 24b77b6de5
Signed by untrusted user: b12f
GPG key ID: 729956E1124F8F26

View file

@ -9,6 +9,12 @@
"www.pub.solar" = {
enableACME = true;
addSSL = true;
extraConfig = ''
error_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/