[GH-ISSUE #416] Double base-url when using "Attach local file" #321

Closed
opened 2026-05-07 00:23:02 +02:00 by BreizhHardware · 4 comments

Originally created by @demogorgonz on GitHub (Sep 29, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/416

chrome_cSnKilEaRN

Uploaded file have double base-url for some reason, probably a bug?

Originally created by @demogorgonz on GitHub (Sep 29, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/416 ![chrome_cSnKilEaRN](https://user-images.githubusercontent.com/5041776/193051014-732f6627-bfa5-44ef-9c58-aab514495fe0.png) Uploaded file have double `base-url` for some reason, probably a bug?
BreizhHardware 2026-05-07 00:23:02 +02:00
Author
Owner

@binwiederhier commented on GitHub (Sep 30, 2022):

Can you reproduce this with ntfy.sh? I tried there and I cannot reproduce it.

Can you share your censored server.yml base-url? Does it end in a slash? Can you remove the slash? Wild guess...

<!-- gh-comment-id:1263042805 --> @binwiederhier commented on GitHub (Sep 30, 2022): Can you reproduce this with ntfy.sh? I tried there and I cannot reproduce it. Can you share your censored server.yml `base-url`? Does it end in a slash? Can you remove the slash? Wild guess...
Author
Owner

@demogorgonz commented on GitHub (Sep 30, 2022):

# grep "^[^#]" server.yml

 base-url: "ntfy.example.com"
 listen-http: ":9000"
 cache-file: "/var/cache/ntfy/cache.db"
 behind-proxy: true
 attachment-cache-dir: "/var/cache/ntfy/attachments"
 attachment-total-size-limit: "5G"
 attachment-file-size-limit: "20M"
 attachment-expiry-duration: "24h"
 smtp-server-listen: ":25"
 smtp-server-domain: "ntfy.example.com"
 smtp-server-addr-prefix: "ntfy-"
 upstream-base-url: "https://ntfy.sh"

@binwiederhier thank you for reply, base-url doesn't have a slash in it, this is whole config, can't reproduce it on ntfy.sh.

Just a pointer, it is behind proxy behind-proxy: true and using upstream-base-url for notifications which i doubt is a case for ntfy.sh

<!-- gh-comment-id:1263253818 --> @demogorgonz commented on GitHub (Sep 30, 2022): `# grep "^[^#]" server.yml` ``` base-url: "ntfy.example.com" listen-http: ":9000" cache-file: "/var/cache/ntfy/cache.db" behind-proxy: true attachment-cache-dir: "/var/cache/ntfy/attachments" attachment-total-size-limit: "5G" attachment-file-size-limit: "20M" attachment-expiry-duration: "24h" smtp-server-listen: ":25" smtp-server-domain: "ntfy.example.com" smtp-server-addr-prefix: "ntfy-" upstream-base-url: "https://ntfy.sh" ``` @binwiederhier thank you for reply, base-url doesn't have a slash in it, this is whole config, can't reproduce it on ntfy.sh. Just a pointer, it is behind proxy `behind-proxy: true` and using `upstream-base-url` for notifications which i doubt is a case for ntfy.sh
Author
Owner

@binwiederhier commented on GitHub (Sep 30, 2022):

The base-url has to start with http:// or https://

<!-- gh-comment-id:1263451971 --> @binwiederhier commented on GitHub (Sep 30, 2022): The base-url has to start with http:// or https://
Author
Owner

@demogorgonz commented on GitHub (Sep 30, 2022):

The base-url has to start with http:// or https://

Indeed, that solves it. Thank you :)

<!-- gh-comment-id:1263455716 --> @demogorgonz commented on GitHub (Sep 30, 2022): > The base-url has to start with http:// or https:// Indeed, that solves it. Thank you :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#321
No description provided.