mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1085] which key?? #761
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#761
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @simpsonetti on GitHub (Apr 9, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1085
When i type this here at command prompt:
ntfy serve
i get this:
yaml: line 21: did not find expected key
In line 21 there is only a #
19 # To listen on all interfaces, you may omit the IP address, e.g. ":443".
20 # To disable HTTP, set "listen-http" to "-".
21 #
22 listen-http: ":80"
23 listen-https: ":443"
24
25 # Listen on a Unix socket, e.g. /var/lib/ntfy/ntfy.sock
26 # This can be useful to avoid port issues on local systems, and to simplify permissions.
27 #
28 # listen-unix:
29 # listen-unix-mode: <linux permissions, e.g. 0700>
30
31 # Path to the private key & cert file for the HTTPS web server. Not used if "listen-https" is not set.
32 #
33 key-file: "/home/rzadmin/cert/ntfy.key"
34 cert-file: "/home/rzadmin/cert/ntfy.crt"
35
so which key does is mean?
Thanks and regards
@W1BTR commented on GitHub (May 23, 2024):
also having this issue on a fresh install with cache enabled.
@wunter8 commented on GitHub (May 23, 2024):
Check your server.yml syntax here: yamllint.com
@W1BTR commented on GitHub (May 23, 2024):
I dont have any yamllint.com in my config. The error goes away when I remove my base-url from the config.
Also worth noting I am behind an apache proxy
@W1BTR commented on GitHub (May 23, 2024):
Apparently yaml files need spaces before each line. I did not have a space before any line in the server.yml file.
Simply adding a single space fixed all the issues.
@wunter8 commented on GitHub (May 23, 2024):
Glad it's working now!
(I will say, though, yaml files don't need a space before each line. BUT the whitespace does need to be consistent throughout the file. So if your first line had a space before it, all the others would need one, too. It should still work if you remove the leading space from every line, so that none of them have a leading space)