gitglubber commited on
Commit
9050275
·
verified ·
1 Parent(s): 1ecef98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +411 -0
app.py CHANGED
@@ -39,6 +39,417 @@ put the URL you copied in the ntfy base-url config in server.yml or NTFY_BASE_UR
39
  put the URL you copied in the default server URL setting in the iOS ntfy app
40
  set upstream-base-url in server.yml or NTFY_UPSTREAM_BASE_URL in env variables to "https://ntfy.sh/" (without a trailing slash)
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  **People to know:** binweiderhier is the developer of NTFY. wunter8 is the expert and moderator of the discord channel. Support occurs primarily from the discord channel.
43
 
44
  Free to use (with restrictions) server is available at ntfy.sh - pro plans are available. NTFY client is available for desktop (PWA), iphone (appstore), android (f-droid and google play).
 
39
  put the URL you copied in the default server URL setting in the iOS ntfy app
40
  set upstream-base-url in server.yml or NTFY_UPSTREAM_BASE_URL in env variables to "https://ntfy.sh/" (without a trailing slash)
41
 
42
+ this is a sample server.yml file - use this as a base:
43
+
44
+ # ntfy server config file
45
+ #
46
+ # Please refer to the documentation at https://ntfy.sh/docs/config/ for details.
47
+ # All options also support underscores (_) instead of dashes (-) to comply with the YAML spec.
48
+
49
+ # Public facing base URL of the service (e.g. https://ntfy.sh or https://ntfy.example.com)
50
+ #
51
+ # This setting is required for any of the following features:
52
+ # - attachments (to return a download URL)
53
+ # - e-mail sending (for the topic URL in the email footer)
54
+ # - iOS push notifications for self-hosted servers (to calculate the Firebase poll_request topic)
55
+ # - Matrix Push Gateway (to validate that the pushkey is correct)
56
+ #
57
+ # base-url:
58
+
59
+ # Listen address for the HTTP & HTTPS web server. If "listen-https" is set, you must also
60
+ # set "key-file" and "cert-file". Format: [<ip>]:<port>, e.g. "1.2.3.4:8080".
61
+ #
62
+ # To listen on all interfaces, you may omit the IP address, e.g. ":443".
63
+ # To disable HTTP, set "listen-http" to "-".
64
+ #
65
+ # listen-http: ":80"
66
+ # listen-https:
67
+
68
+ # Listen on a Unix socket, e.g. /var/lib/ntfy/ntfy.sock
69
+ # This can be useful to avoid port issues on local systems, and to simplify permissions.
70
+ #
71
+ # listen-unix: <socket-path>
72
+ # listen-unix-mode: <linux permissions, e.g. 0700>
73
+
74
+ # Path to the private key & cert file for the HTTPS web server. Not used if "listen-https" is not set.
75
+ #
76
+ # key-file: <filename>
77
+ # cert-file: <filename>
78
+
79
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
80
+ # This is optional and only required to save battery when using the Android app.
81
+ #
82
+ # firebase-key-file: <filename>
83
+
84
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
85
+ # This allows for service restarts without losing messages in support of the since= parameter.
86
+ #
87
+ # The "cache-duration" parameter defines the duration for which messages will be buffered
88
+ # before they are deleted. This is required to support the "since=..." and "poll=1" parameter.
89
+ # To disable the cache entirely (on-disk/in-memory), set "cache-duration" to 0.
90
+ # The cache file is created automatically, provided that the correct permissions are set.
91
+ #
92
+ # The "cache-startup-queries" parameter allows you to run commands when the database is initialized,
93
+ # e.g. to enable WAL mode (see https://phiresky.github.io/blog/2020/sqlite-performance-tuning/)).
94
+ # Example:
95
+ # cache-startup-queries: |
96
+ # pragma journal_mode = WAL;
97
+ # pragma synchronous = normal;
98
+ # pragma temp_store = memory;
99
+ # pragma busy_timeout = 15000;
100
+ # vacuum;
101
+ #
102
+ # The "cache-batch-size" and "cache-batch-timeout" parameter allow enabling async batch writing
103
+ # of messages. If set, messages will be queued and written to the database in batches of the given
104
+ # size, or after the given timeout. This is only required for high volume servers.
105
+ #
106
+ # Debian/RPM package users:
107
+ # Use /var/cache/ntfy/cache.db as cache file to avoid permission issues. The package
108
+ # creates this folder for you.
109
+ #
110
+ # Check your permissions:
111
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
112
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
113
+ #
114
+ # cache-file: <filename>
115
+ # cache-duration: "12h"
116
+ # cache-startup-queries:
117
+ # cache-batch-size: 0
118
+ # cache-batch-timeout: "0ms"
119
+
120
+ # If set, access to the ntfy server and API can be controlled on a granular level using
121
+ # the 'ntfy user' and 'ntfy access' commands. See the --help pages for details, or check the docs.
122
+ #
123
+ # - auth-file is the SQLite user/access database; it is created automatically if it doesn't already exist
124
+ # - auth-default-access defines the default/fallback access if no access control entry is found; it can be
125
+ # set to "read-write" (default), "read-only", "write-only" or "deny-all".
126
+ # - auth-startup-queries allows you to run commands when the database is initialized, e.g. to enable
127
+ # WAL mode. This is similar to cache-startup-queries. See above for details.
128
+ # - auth-users is a list of users that are automatically created when the server starts.
129
+ # Each entry is in the format "<username>:<password-hash>:<role>", e.g. "phil:$2a$10$YLiO8U21sX1uhZamTLJXHuxgVC0Z/GKISibrKCLohPgtG7yIxSk4C:user"
130
+ # Use 'ntfy user hash' to generate the password hash from a password.
131
+ # - auth-access is a list of access control entries that are automatically created when the server starts.
132
+ # Each entry is in the format "<username>:<topic-pattern>:<access>", e.g. "phil:mytopic:rw" or "phil:phil-*:rw".
133
+ # - auth-tokens is a list of access tokens that are automatically created when the server starts.
134
+ # Each entry is in the format "<username>:<token>[:<label>]", e.g. "phil:tk_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef:My token".
135
+ # Use 'ntfy token generate' to generate a new access token.
136
+ #
137
+ # Debian/RPM package users:
138
+ # Use /var/lib/ntfy/user.db as user database to avoid permission issues. The package
139
+ # creates this folder for you.
140
+ #
141
+ # Check your permissions:
142
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
143
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
144
+ #
145
+ # auth-file: <filename>
146
+ # auth-default-access: "read-write"
147
+ # auth-startup-queries:
148
+ # auth-users:
149
+ # auth-access:
150
+ # auth-tokens:
151
+
152
+ # If set, the X-Forwarded-For header (or whatever is configured in proxy-forwarded-header) is used to determine
153
+ # the visitor IP address instead of the remote address of the connection.
154
+ #
155
+ # WARNING: If you are behind a proxy, you must set this, otherwise all visitors are rate-limited
156
+ # as if they are one.
157
+ #
158
+ # - behind-proxy makes it so that the real visitor IP address is extracted from the header defined in
159
+ # proxy-forwarded-header. Without this, the remote address of the incoming connection is used.
160
+ # - proxy-forwarded-header is the header to use to identify visitors. It may be a single IP address (e.g. 1.2.3.4),
161
+ # a comma-separated list of IP addresses (e.g. "1.2.3.4, 5.6.7.8"), or an RFC 7239-style header (e.g. "for=1.2.3.4;by=proxy.example.com, for=5.6.7.8").
162
+ # - proxy-trusted-hosts is a comma-separated list of IP addresses, hostnames or CIDRs that are removed from the forwarded header
163
+ # to determine the real IP address. This is only useful if there are multiple proxies involved that add themselves to
164
+ # the forwarded header.
165
+ #
166
+ # behind-proxy: false
167
+ # proxy-forwarded-header: "X-Forwarded-For"
168
+ # proxy-trusted-hosts:
169
+
170
+ # If enabled, clients can attach files to notifications as attachments. Minimum settings to enable attachments
171
+ # are "attachment-cache-dir" and "base-url".
172
+ #
173
+ # - attachment-cache-dir is the cache directory for attached files
174
+ # - attachment-total-size-limit is the limit of the on-disk attachment cache directory (total size)
175
+ # - attachment-file-size-limit is the per-file attachment size limit (e.g. 300k, 2M, 100M)
176
+ # - attachment-expiry-duration is the duration after which uploaded attachments will be deleted (e.g. 3h, 20h)
177
+ #
178
+ # attachment-cache-dir:
179
+ # attachment-total-size-limit: "5G"
180
+ # attachment-file-size-limit: "15M"
181
+ # attachment-expiry-duration: "3h"
182
+
183
+ # Template directory for message templates.
184
+ #
185
+ # When "X-Template: <name>" (aliases: "Template: <name>", "Tpl: <name>") or "?template=<name>" is set, transform the message
186
+ # based on one of the built-in pre-defined templates, or on a template defined in the "template-dir" directory.
187
+ #
188
+ # Template files must have the ".yml" extension and must be formatted as YAML. They may contain "title" and "message" keys,
189
+ # which are interpreted as Go templates.
190
+ #
191
+ # Example template file (e.g. /etc/ntfy/templates/grafana.yml):
192
+ # title: |
193
+ # {{- if eq .status "firing" }}
194
+ # {{ .title | default "Alert firing" }}
195
+ # {{- else if eq .status "resolved" }}
196
+ # {{ .title | default "Alert resolved" }}
197
+ # {{- end }}
198
+ # message: |
199
+ # {{ .message | trunc 2000 }}
200
+ #
201
+ # template-dir: "/etc/ntfy/templates"
202
+
203
+ # If enabled, allow outgoing e-mail notifications via the 'X-Email' header. If this header is set,
204
+ # messages will additionally be sent out as e-mail using an external SMTP server.
205
+ #
206
+ # As of today, only SMTP servers with plain text auth (or no auth at all), and STARTLS are supported.
207
+ # Please also refer to the rate limiting settings below (visitor-email-limit-burst & visitor-email-limit-burst).
208
+ #
209
+ # - smtp-sender-addr is the hostname:port of the SMTP server
210
+ # - smtp-sender-from is the e-mail address of the sender
211
+ # - smtp-sender-user/smtp-sender-pass are the username and password of the SMTP user (leave blank for no auth)
212
+ #
213
+ # smtp-sender-addr:
214
+ # smtp-sender-from:
215
+ # smtp-sender-user:
216
+ # smtp-sender-pass:
217
+
218
+ # If enabled, ntfy will launch a lightweight SMTP server for incoming messages. Once configured, users can send
219
+ # emails to a topic e-mail address to publish messages to a topic.
220
+ #
221
+ # - smtp-server-listen defines the IP address and port the SMTP server will listen on, e.g. :25 or 1.2.3.4:25
222
+ # - smtp-server-domain is the e-mail domain, e.g. ntfy.sh
223
+ # - smtp-server-addr-prefix is an optional prefix for the e-mail addresses to prevent spam. If set to "ntfy-",
224
+ # for instance, only e-mails to [email protected] will be accepted. If this is not set, all emails to
225
+ # [email protected] will be accepted (which may be a spam problem).
226
+ #
227
+ # smtp-server-listen:
228
+ # smtp-server-domain:
229
+ # smtp-server-addr-prefix:
230
+
231
+ # Web Push support (background notifications for browsers)
232
+ #
233
+ # If enabled, allows the ntfy web app to receive push notifications, even when the web app is closed. When enabled, users
234
+ # can enable background notifications in the web app. Once enabled, ntfy will forward published messages to the push
235
+ # endpoint, which will then forward it to the browser.
236
+ #
237
+ # You must configure web-push-public/private key, web-push-file, and web-push-email-address below to enable Web Push.
238
+ # Run "ntfy webpush keys" to generate the keys.
239
+ #
240
+ # - web-push-public-key is the generated VAPID public key, e.g. AA1234BBCCddvveekaabcdfqwertyuiopasdfghjklzxcvbnm1234567890
241
+ # - web-push-private-key is the generated VAPID private key, e.g. AA2BB1234567890abcdefzxcvbnm1234567890
242
+ # - web-push-file is a database file to keep track of browser subscription endpoints, e.g. /var/cache/ntfy/webpush.db
243
+ # - web-push-email-address is the admin email address send to the push provider, e.g. [email protected]
244
+ # - web-push-startup-queries is an optional list of queries to run on startup`
245
+ # - web-push-expiry-warning-duration defines the duration after which unused subscriptions are sent a warning (default is 55d`)
246
+ # - web-push-expiry-duration defines the duration after which unused subscriptions will expire (default is 60d)
247
+ #
248
+ # web-push-public-key:
249
+ # web-push-private-key:
250
+ # web-push-file:
251
+ # web-push-email-address:
252
+ # web-push-startup-queries:
253
+ # web-push-expiry-warning-duration: "55d"
254
+ # web-push-expiry-duration: "60d"
255
+
256
+ # If enabled, ntfy can perform voice calls via Twilio via the "X-Call" header.
257
+ #
258
+ # - twilio-account is the Twilio account SID, e.g. AC12345beefbeef67890beefbeef122586
259
+ # - twilio-auth-token is the Twilio auth token, e.g. affebeef258625862586258625862586
260
+ # - twilio-phone-number is the outgoing phone number you purchased, e.g. +18775132586
261
+ # - twilio-verify-service is the Twilio Verify service SID, e.g. VA12345beefbeef67890beefbeef122586
262
+ #
263
+ # twilio-account:
264
+ # twilio-auth-token:
265
+ # twilio-phone-number:
266
+ # twilio-verify-service:
267
+
268
+ # Interval in which keepalive messages are sent to the client. This is to prevent
269
+ # intermediaries closing the connection for inactivity.
270
+ #
271
+ # Note that the Android app has a hardcoded timeout at 77s, so it should be less than that.
272
+ #
273
+ # keepalive-interval: "45s"
274
+
275
+ # Interval in which the manager prunes old messages, deletes topics
276
+ # and prints the stats.
277
+ #
278
+ # manager-interval: "1m"
279
+
280
+ # Defines topic names that are not allowed, because they are otherwise used. There are a few default topics
281
+ # that cannot be used (e.g. app, account, settings, ...). To extend the default list, define them here.
282
+ #
283
+ # Example:
284
+ # disallowed-topics:
285
+ # - about
286
+ # - pricing
287
+ # - contact
288
+ #
289
+ # disallowed-topics:
290
+
291
+ # Defines the root path of the web app, or disables the web app entirely.
292
+ #
293
+ # Can be any simple path, e.g. "/", "/app", or "/ntfy". For backwards-compatibility reasons,
294
+ # the values "app" (maps to "/"), "home" (maps to "/app"), or "disable" (maps to "") to disable
295
+ # the web app entirely.
296
+ #
297
+ # web-root: /
298
+
299
+ # Various feature flags used to control the web app, and API access, mainly around user and
300
+ # account management.
301
+ #
302
+ # - enable-signup allows users to sign up via the web app, or API
303
+ # - enable-login allows users to log in via the web app, or API
304
+ # - require-login redirects users to the login page if they are not logged in (disallows web app access without login)
305
+ # - enable-reservations allows users to reserve topics (if their tier allows it)
306
+ #
307
+ # enable-signup: false
308
+ # require-login: false
309
+ # enable-login: false
310
+ # enable-reservations: false
311
+
312
+ # Server URL of a Firebase/APNS-connected ntfy server (likely "https://ntfy.sh").
313
+ #
314
+ # iOS users:
315
+ # If you use the iOS ntfy app, you MUST configure this to receive timely notifications. You'll like want this:
316
+ # upstream-base-url: "https://ntfy.sh"
317
+ #
318
+ # If set, all incoming messages will publish a "poll_request" message to the configured upstream server, containing
319
+ # the message ID of the original message, instructing the iOS app to poll this server for the actual message contents.
320
+ # This is to prevent the upstream server and Firebase/APNS from being able to read the message.
321
+ #
322
+ # - upstream-base-url is the base URL of the upstream server. Should be "https://ntfy.sh".
323
+ # - upstream-access-token is the token used to authenticate with the upstream server. This is only required
324
+ # if you exceed the upstream rate limits, or the uptream server requires authentication.
325
+ #
326
+ # upstream-base-url:
327
+ # upstream-access-token:
328
+
329
+ # Configures message-specific limits
330
+ #
331
+ # - message-size-limit defines the max size of a message body. Please note message sizes >4K are NOT RECOMMENDED,
332
+ # and largely untested. If FCM and/or APNS is used, the limit should stay 4K, because their limits are around that size.
333
+ # If you increase this size limit regardless, FCM and APNS will NOT work for large messages.
334
+ # - message-delay-limit defines the max delay of a message when using the "Delay" header.
335
+ #
336
+ # message-size-limit: "4k"
337
+ # message-delay-limit: "3d"
338
+
339
+ # Rate limiting: Total number of topics before the server rejects new topics.
340
+ #
341
+ # global-topic-limit: 15000
342
+
343
+ # Rate limiting: Number of subscriptions per visitor (IP address)
344
+ #
345
+ # visitor-subscription-limit: 30
346
+
347
+ # Rate limiting: Allowed GET/PUT/POST requests per second, per visitor:
348
+ # - visitor-request-limit-burst is the initial bucket of requests each visitor has
349
+ # - visitor-request-limit-replenish is the rate at which the bucket is refilled
350
+ # - visitor-request-limit-exempt-hosts is a comma-separated list of hostnames, IPs or CIDRs to be
351
+ # exempt from request rate limiting. Hostnames are resolved at the time the server is started.
352
+ # Example: "1.2.3.4,ntfy.example.com,8.7.6.0/24"
353
+ #
354
+ # visitor-request-limit-burst: 60
355
+ # visitor-request-limit-replenish: "5s"
356
+ # visitor-request-limit-exempt-hosts: ""
357
+
358
+ # Rate limiting: Hard daily limit of messages per visitor and day. The limit is reset
359
+ # every day at midnight UTC. If the limit is not set (or set to zero), the request
360
+ # limit (see above) governs the upper limit.
361
+ #
362
+ # visitor-message-daily-limit: 0
363
+
364
+ # Rate limiting: Allowed emails per visitor:
365
+ # - visitor-email-limit-burst is the initial bucket of emails each visitor has
366
+ # - visitor-email-limit-replenish is the rate at which the bucket is refilled
367
+ #
368
+ # visitor-email-limit-burst: 16
369
+ # visitor-email-limit-replenish: "1h"
370
+
371
+ # Rate limiting: IPv4/IPv6 address prefix bits used for rate limiting
372
+ # - visitor-prefix-bits-ipv4: number of bits of the IPv4 address to use for rate limiting (default: 32, full address)
373
+ # - visitor-prefix-bits-ipv6: number of bits of the IPv6 address to use for rate limiting (default: 64, /64 subnet)
374
+ #
375
+ # This is used to group visitors by their IP address or subnet. For example, if you set visitor-prefix-bits-ipv4 to 24,
376
+ # all visitors in the 1.2.3.0/24 network are treated as one.
377
+ #
378
+ # By default, ntfy uses the full IPv4 address (32 bits) and the /64 subnet of the IPv6 address (64 bits).
379
+ #
380
+ # visitor-prefix-bits-ipv4: 32
381
+ # visitor-prefix-bits-ipv6: 64
382
+
383
+ # Rate limiting: Attachment size and bandwidth limits per visitor:
384
+ # - visitor-attachment-total-size-limit is the total storage limit used for attachments per visitor
385
+ # - visitor-attachment-daily-bandwidth-limit is the total daily attachment download/upload traffic limit per visitor
386
+ #
387
+ # visitor-attachment-total-size-limit: "100M"
388
+ # visitor-attachment-daily-bandwidth-limit: "500M"
389
+
390
+ # Rate limiting: Enable subscriber-based rate limiting (mostly used for UnifiedPush)
391
+ #
392
+ # If subscriber-based rate limiting is enabled, messages published on UnifiedPush topics** (topics starting with "up")
393
+ # will be counted towards the "rate visitor" of the topic. A "rate visitor" is the first subscriber to the topic.
394
+ #
395
+ # Once enabled, a client subscribing to UnifiedPush topics via HTTP stream, or websockets, will be automatically registered as
396
+ # a "rate visitor", i.e. the visitor whose rate limits will be used when publishing on this topic. Note that setting the rate visitor
397
+ # requires **read-write permission** on the topic.
398
+ #
399
+ # If this setting is enabled, publishing to UnifiedPush topics will lead to a HTTP 507 response if
400
+ # no "rate visitor" has been previously registered. This is to avoid burning the publisher's "visitor-message-daily-limit".
401
+ #
402
+ # visitor-subscriber-rate-limiting: false
403
+
404
+ # Payments integration via Stripe
405
+ #
406
+ # - stripe-secret-key is the key used for the Stripe API communication. Setting this values
407
+ # enables payments in the ntfy web app (e.g. Upgrade dialog). See https://dashboard.stripe.com/apikeys.
408
+ # - stripe-webhook-key is the key required to validate the authenticity of incoming webhooks from Stripe.
409
+ # Webhooks are essential up keep the local database in sync with the payment provider. See https://dashboard.stripe.com/webhooks.
410
+ # - billing-contact is an email address or website displayed in the "Upgrade tier" dialog to let people reach
411
+ # out with billing questions. If unset, nothing will be displayed.
412
+ #
413
+ # stripe-secret-key:
414
+ # stripe-webhook-key:
415
+ # billing-contact:
416
+
417
+ # Metrics
418
+ #
419
+ # ntfy can expose Prometheus-style metrics via a /metrics endpoint, or on a dedicated listen IP/port.
420
+ # Metrics may be considered sensitive information, so before you enable them, be sure you know what you are
421
+ # doing, and/or secure access to the endpoint in your reverse proxy.
422
+ #
423
+ # - enable-metrics enables the /metrics endpoint for the default ntfy server (i.e. HTTP, HTTPS and/or Unix socket)
424
+ # - metrics-listen-http exposes the metrics endpoint via a dedicated [IP]:port. If set, this option implicitly
425
+ # enables metrics as well, e.g. "10.0.1.1:9090" or ":9090"
426
+ #
427
+ # enable-metrics: false
428
+ # metrics-listen-http:
429
+
430
+ # Profiling
431
+ #
432
+ # ntfy can expose Go's net/http/pprof endpoints to support profiling of the ntfy server. If enabled, ntfy will listen
433
+ # on a dedicated listen IP/port, which can be accessed via the web browser on http://<ip>:<port>/debug/pprof/.
434
+ # This can be helpful to expose bottlenecks, and visualize call flows. See https://pkg.go.dev/net/http/pprof for details.
435
+ #
436
+ # profile-listen-http:
437
+
438
+ # Logging options
439
+ #
440
+ # By default, ntfy logs to the console (stderr), with an "info" log level, and in a human-readable text format.
441
+ # ntfy supports five different log levels, can also write to a file, log as JSON, and even supports granular
442
+ # log level overrides for easier debugging. Some options (log-level and log-level-overrides) can be hot reloaded
443
+ # by calling "kill -HUP $pid" or "systemctl reload ntfy".
444
+ #
445
+ # - log-format defines the output format, can be "text" (default) or "json"
446
+ # - log-file is a filename to write logs to. If this is not set, ntfy logs to stderr.
447
+ # - log-level defines the default log level, can be one of "trace", "debug", "info" (default), "warn" or "error".
448
+ # Be aware that
449
+
450
+ github project is at https://github.com/binwiederhier/ntfy
451
+
452
+
453
  **People to know:** binweiderhier is the developer of NTFY. wunter8 is the expert and moderator of the discord channel. Support occurs primarily from the discord channel.
454
 
455
  Free to use (with restrictions) server is available at ntfy.sh - pro plans are available. NTFY client is available for desktop (PWA), iphone (appstore), android (f-droid and google play).