don't export dynamic_dns_url, as it may contain an authentication token (eg: DuckDNS)
Massimo Melina committed
Dec 17, 2025 at 23:37 UTC
00ff10771a58ec5f397a354b495dcb72b7e7ac4c
2 files changed
+2
-2
admin/src/ConfigFilePage.ts
+1
-1
@@ -62,7 +62,7 @@ export default function ConfigFilePage() {
62
63
function exportConfig() {
64
const s = (text || '')
65
- .replace(/^(\s*(\w*password|_\w*|token|srp):\s*).+\n/gm, '$1removed\n')
65
+ .replace(/^(\s*(\w*password|_\w*|token|srp|dynamic_dns_url):\s*).+\n/gm, '$1removed\n')
66
.replace(/(:\/\/)[^/@\s]+@/g, '$1removed@') // url credentials
67
+ prefix('custom_html: | # this is currently ignored by hfs, just here for reference\n', data!.customHtml?.replace(/^/gm, ' '))
68
if (!s) return
admin/src/FileForm.ts
+1
-1
@@ -159,7 +159,7 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved, i
159
: { k: 'source', label: "Disk source", xl: true, comp: FileField, files: isUnknown || !isDir, folders: isUnknown || isDir,
160
placeholder: "none",
161
helperText: !values.source ? "If you enter a path here, its content will be listed. Leaving this empty, makes this folder fully virtual."
162
- : isDir ? "Content from this path on disk will be listed, but you can also add more" : undefined,
162
+ : isDir ? "Files from this path on disk will be listed, but you can add more" : undefined,
163
},
164
{ k: 'id', comp: LinkField, statusApi, xs: 12 },
165
{ k: 'order', comp: NumberField, min: -1E5, max: 1E5, placeholder: 'default', sm: 4, helperText: wikiLink('Virtual-file-system#order', "To force position") },