[GH-ISSUE #121] web-documentation set own installed hostname in webserver-config-template #102

Closed
opened 2026-05-07 00:20:00 +02:00 by BreizhHardware · 2 comments

Originally created by @xundeenergie on GitHub (Jan 28, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/121

i love on ntfy documentation, that all examples on the self-hosted site are customized to the installed domain.

but the config-example for nginx is not customized.

please change it, that the server_name points also to the domain, where ntfy is installed and listens on.

Originally created by @xundeenergie on GitHub (Jan 28, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/121 i love on ntfy documentation, that all examples on the self-hosted site are customized to the installed domain. but the config-example for nginx is not customized. please change it, that the server_name points also to the domain, where ntfy is installed and listens on.
BreizhHardware 2026-05-07 00:20:00 +02:00
  • closed this issue
  • added the
    docs
    label
Author
Owner

@binwiederhier commented on GitHub (Jan 28, 2022):

This is very hard to do with mkdocs, because the docs are generated at compile time. I'd have to do some horrible (probably inefficient) JS magic to make this work. I do see the benefit though. Thanks for reporting.

<!-- gh-comment-id:1024257042 --> @binwiederhier commented on GitHub (Jan 28, 2022): This is very hard to do with mkdocs, because the docs are generated at compile time. I'd have to do some horrible (probably inefficient) JS magic to make this work. I do see the benefit though. Thanks for reporting.
Author
Owner

@binwiederhier commented on GitHub (Apr 13, 2022):

I looked at this again and I don't think it's achievable without significant effort. mkdocs only supports build time varables, and not runtime variables, so I'd have to manually add placeholders in every single example, including code blocks, links and such. That's too much work for too little reward.

Sorry, but I think I'm going to close this ticket. That said, if anyone else were to provide a solution to this, I'm more than happy to merge it.

<!-- gh-comment-id:1098012594 --> @binwiederhier commented on GitHub (Apr 13, 2022): I looked at this again and I don't think it's achievable without significant effort. `mkdocs` only supports build time varables, and not runtime variables, so I'd have to manually add placeholders in every single example, including code blocks, links and such. That's too much work for too little reward. Sorry, but I think I'm going to close this ticket. That said, if anyone else were to provide a solution to this, I'm more than happy to merge it.
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#102
No description provided.