hfs 0.49.0-alpha2 → 0.49.0-alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -17
- package/admin/assets/{index-6afd4b06.js → index-01a34c44.js} +49 -44
- package/admin/assets/{sha512-f5f12dc1.js → sha512-7ee6016e.js} +1 -1
- package/admin/index.html +1 -1
- package/central.json +12 -0
- package/frontend/assets/{index-3a379840.js → index-51e1daa3.js} +2 -2
- package/frontend/assets/{sha512-3392c31f.js → sha512-33a5ce93.js} +1 -1
- package/frontend/index.html +1 -1
- package/package.json +1 -1
- package/src/adminApis.js +9 -2
- package/src/api.net.js +74 -37
- package/src/commands.js +3 -10
- package/src/config.js +9 -6
- package/src/const.js +6 -29
- package/src/cross-const.js +31 -0
- package/src/cross.js +16 -1
- package/src/index.js +2 -1
- package/src/listen.js +1 -1
- package/src/misc.js +1 -1
- package/src/perm.js +16 -1
- package/src/plugins.js +2 -1
- package/src/serveFile.js +1 -1
- package/src/serveGuiFiles.js +2 -1
- package/src/update.js +13 -5
- package/src/util-files.js +3 -2
- package/src/util-http.js +1 -3
- package/src/watchLoad.js +6 -2
package/README.md
CHANGED
|
@@ -57,11 +57,12 @@ NB: minimum Windows version required is 8.1 , Windows Server 2012 R2 (because of
|
|
|
57
57
|
- If you cannot find your system in the list, see next section [Other systems](#other-systems).
|
|
58
58
|
4. the browser should automatically open on `localhost` address, so you can configure the rest in the Admin-panel.
|
|
59
59
|
- if a browser cannot be opened on the computer where you are installing HFS,
|
|
60
|
-
you should enter this command in HFS console: `create-admin <PASSWORD>`
|
|
61
|
-
- if you
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
you should enter this command in the HFS console: `create-admin <PASSWORD>`
|
|
61
|
+
- if you cannot access the console (like when you are running as a service),
|
|
62
|
+
you can [edit the config file to add your admin account](config.md#accounts)
|
|
63
|
+
- if you don't want to use an editor you can create the file with this command:
|
|
64
|
+
|
|
65
|
+
`echo "create-admin: PASSWORD" > config.yaml`
|
|
65
66
|
|
|
66
67
|
If you access *Admin-panel* via localhost, by default HFS **won't** require you to login.
|
|
67
68
|
If you don't like this behavior, disable it in the Admin-panel or enter this console command `config localhost_admin false`.
|
|
@@ -116,21 +117,11 @@ To update
|
|
|
116
117
|
|
|
117
118
|
## Console commands
|
|
118
119
|
|
|
119
|
-
If you have access to HFS' console, you can enter commands. Start with `help` to have a full list.
|
|
120
|
+
If you have full access to HFS' console, you can enter commands. Start with `help` to have a full list.
|
|
120
121
|
|
|
121
122
|
## Configuration
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
- accessing the Admin-panel with your browser
|
|
125
|
-
- it will automatically open when you start HFS. Bookmark it. if your port is 8000 the address will be http://localhost:8000/~/admin
|
|
126
|
-
- passing via command line at start in the form `--NAME VALUE`
|
|
127
|
-
- using envs in the form `HFS_NAME` (eg: `HFS_PORT`)
|
|
128
|
-
- directly editing the `config.yaml` file. As soon as you save it is reloaded and changes are applied
|
|
129
|
-
- after HFS has started you can enter console command in the form `config NAME VALUE`
|
|
130
|
-
|
|
131
|
-
`NAME` stands for the property name that you want to change. See the [complete list](config.md).
|
|
132
|
-
|
|
133
|
-
You can specify a different `config.yaml` at command line with `--config PATH` or similarly with an env `HFS_CONFIG`.
|
|
124
|
+
For configuration please see [file config.md](config.md).
|
|
134
125
|
|
|
135
126
|
### Where is it stored
|
|
136
127
|
|