Change ip_external on Config page
This commit is contained in:
parent
055aea58bb
commit
3b91be8449
4 changed files with 21 additions and 5 deletions
|
@ -62,6 +62,13 @@ class ConfigStorage extends Class
|
||||||
valid_pattern: /[0-9]*/
|
valid_pattern: /[0-9]*/
|
||||||
description: "Other peers will use this port to reach your served sites. (default: 15441)"
|
description: "Other peers will use this port to reach your served sites. (default: 15441)"
|
||||||
|
|
||||||
|
section.items.push
|
||||||
|
key: "ip_external"
|
||||||
|
title: "File server external ip"
|
||||||
|
type: "textarea"
|
||||||
|
placeholder: "Detect automatically"
|
||||||
|
description: "Your file server is accessible on these ips. (default: detect automatically)"
|
||||||
|
|
||||||
section.items.push
|
section.items.push
|
||||||
title: "Tor"
|
title: "Tor"
|
||||||
key: "tor"
|
key: "tor"
|
||||||
|
@ -139,4 +146,4 @@ class ConfigStorage extends Class
|
||||||
@items.push(section)
|
@items.push(section)
|
||||||
return section
|
return section
|
||||||
|
|
||||||
window.ConfigStorage = ConfigStorage
|
window.ConfigStorage = ConfigStorage
|
|
@ -104,7 +104,8 @@ class ConfigView extends Class
|
||||||
if not value
|
if not value
|
||||||
value = ""
|
value = ""
|
||||||
h("textarea.input-#{item.type}.input-text",{
|
h("textarea.input-#{item.type}.input-text",{
|
||||||
type: item.type, config_key: item.key, oninput: @handleInputChange, afterCreate: @autosizeTextarea, updateAnimation: @autosizeTextarea, value: value
|
type: item.type, config_key: item.key, oninput: @handleInputChange, afterCreate: @autosizeTextarea,
|
||||||
|
updateAnimation: @autosizeTextarea, value: value, placeholder: item.placeholder
|
||||||
})
|
})
|
||||||
|
|
||||||
renderValueCheckbox: (item) =>
|
renderValueCheckbox: (item) =>
|
||||||
|
|
|
@ -1379,6 +1379,13 @@
|
||||||
valid_pattern: /[0-9]*/,
|
valid_pattern: /[0-9]*/,
|
||||||
description: "Other peers will use this port to reach your served sites. (default: 15441)"
|
description: "Other peers will use this port to reach your served sites. (default: 15441)"
|
||||||
});
|
});
|
||||||
|
section.items.push({
|
||||||
|
key: "ip_external",
|
||||||
|
title: "File server external ip",
|
||||||
|
type: "textarea",
|
||||||
|
placeholder: "Detect automatically",
|
||||||
|
description: "Your file server is accessible on these ips. (default: detect automatically)"
|
||||||
|
});
|
||||||
section.items.push({
|
section.items.push({
|
||||||
title: "Tor",
|
title: "Tor",
|
||||||
key: "tor",
|
key: "tor",
|
||||||
|
@ -1650,7 +1657,8 @@
|
||||||
oninput: this.handleInputChange,
|
oninput: this.handleInputChange,
|
||||||
afterCreate: this.autosizeTextarea,
|
afterCreate: this.autosizeTextarea,
|
||||||
updateAnimation: this.autosizeTextarea,
|
updateAnimation: this.autosizeTextarea,
|
||||||
value: value
|
value: value,
|
||||||
|
placeholder: item.placeholder
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1927,4 +1935,4 @@
|
||||||
|
|
||||||
window.Page.createProjector();
|
window.Page.createProjector();
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
|
@ -20,7 +20,7 @@ class Config(object):
|
||||||
self.need_restart = False
|
self.need_restart = False
|
||||||
self.keys_api_change_allowed = set([
|
self.keys_api_change_allowed = set([
|
||||||
"tor", "fileserver_port", "language", "tor_use_bridges", "trackers_proxy", "trackers",
|
"tor", "fileserver_port", "language", "tor_use_bridges", "trackers_proxy", "trackers",
|
||||||
"trackers_file", "open_browser", "log_level", "fileserver_ip_type"
|
"trackers_file", "open_browser", "log_level", "fileserver_ip_type", "ip_external"
|
||||||
])
|
])
|
||||||
self.keys_restart_need = set(["tor", "fileserver_port", "fileserver_ip_type"])
|
self.keys_restart_need = set(["tor", "fileserver_port", "fileserver_ip_type"])
|
||||||
self.start_dir = self.getStartDir()
|
self.start_dir = self.getStartDir()
|
||||||
|
|
Loading…
Reference in a new issue