mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-08 21:05:21 +00:00
Review
This commit is contained in:
@@ -139,7 +139,15 @@ using Docker Compose (i.e. `docker-compose.yml`):
|
|||||||
|
|
||||||
This generator helps you configure your self-hosted ntfy instance. It's not fully featured, but it is a good starting point. Please refer to the relevant sections in the doc for more details.
|
This generator helps you configure your self-hosted ntfy instance. It's not fully featured, but it is a good starting point. Please refer to the relevant sections in the doc for more details.
|
||||||
|
|
||||||
|
<div style="text-align: center;">
|
||||||
<button type="button" id="cg-open-btn" class="cg-open-btn">Open config generator</button>
|
<button type="button" id="cg-open-btn" class="cg-open-btn">Open config generator</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<figure markdown style="padding-left: 50px; padding-right: 50px; cursor: pointer;" onclick="document.getElementById('cg-open-btn').click();">
|
||||||
|
<img src="../../static/img/config-generator.png"/>
|
||||||
|
<figcaption>The config generator helps you create a custom config for your self-hosted ntfy instance. Click to open.</figcaption>
|
||||||
|
</figure>
|
||||||
|
|
||||||
<div id="cg-modal" class="cg-modal" style="display:none">
|
<div id="cg-modal" class="cg-modal" style="display:none">
|
||||||
<div class="cg-modal-backdrop"></div>
|
<div class="cg-modal-backdrop"></div>
|
||||||
<div class="cg-modal-dialog">
|
<div class="cg-modal-dialog">
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
Vendored
+19
-3
@@ -426,10 +426,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Derive volumes from configured file/directory paths
|
||||||
|
const dirs = new Set();
|
||||||
|
["auth-file", "cache-file", "web-push-file"].forEach((key) => {
|
||||||
|
if (values[key]) {
|
||||||
|
const dir = values[key].substring(0, values[key].lastIndexOf("/"));
|
||||||
|
if (dir) dirs.add(dir);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (values["attachment-cache-dir"]) {
|
||||||
|
dirs.add(values["attachment-cache-dir"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dirs.size) {
|
||||||
|
lines.push(" volumes:");
|
||||||
|
[...dirs].sort().forEach((dir) => {
|
||||||
|
lines.push(` - ${dir}:${dir}`);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
lines.push(
|
lines.push(
|
||||||
" volumes:",
|
|
||||||
" - /var/cache/ntfy:/var/cache/ntfy",
|
|
||||||
" - /etc/ntfy:/etc/ntfy",
|
|
||||||
" ports:",
|
" ports:",
|
||||||
" - \"80:80\"",
|
" - \"80:80\"",
|
||||||
" restart: unless-stopped"
|
" restart: unless-stopped"
|
||||||
|
|||||||
Reference in New Issue
Block a user