bundles/ntfy add more nginx options

This commit is contained in:
Sophie Schiller 2022-10-19 16:33:36 +02:00
parent 6e23f84a39
commit 014c7e5be8
2 changed files with 6 additions and 4 deletions

View file

@ -85,7 +85,7 @@ cache-startup-queries: |
# ntfy user and group by running: chown ntfy.ntfy <filename>.
#
auth-file: "/var/lib/ntfy/user.db"
auth-default-access: "deny-all"
auth-default-access: "write-only"
# If set, the X-Forwarded-For header is used to determine the visitor IP address
# instead of the remote address of the connection.

View file

@ -14,9 +14,9 @@ defaults = {
},
'backups': {
'paths': {
"/var/cache/ntfy"
"/var/lib/ntfy"
"/var/opt/ntfy"
"/var/cache/ntfy",
"/var/lib/ntfy",
"/var/opt/ntfy",
},
},
'zfs': {
@ -63,6 +63,8 @@ def nginx(metadata):
'additional_config': {
'proxy_connect_timeout 3m',
'proxy_send_timeout 3m',
'proxy_request_buffering off',
'proxy_redirect off',
}
},
}