📚 docs

This commit is contained in:
jokob-sk
2024-10-16 23:12:29 +11:00
parent 3d51b1cd15
commit c77ae32736
4 changed files with 17 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ End-result: Partial restore (historical data & configurations from the Maintenan
#### Recovery:
Even with a corrupted database you can recover what I would argue is 99% of the configuration (except of a couple of settings under Maintenance).
Even with a corrupted database you can recover what I would argue is 99% of the configuration.
- map the `/config/app.conf` file as described in the [Setup documentation](https://github.com/jokob-sk/NetAlertX/blob/main/dockerfiles/README.md#docker-paths).
- rename the `devices_<timestamp>.csv` to `devices.csv` and place it in the `/config` folder

0
front/php/templates/language/it_it.json Normal file → Executable file
View File

View File

@@ -12,9 +12,16 @@ Specify the following settings in the Settings section of NetAlertX:
- `UNFIMP_sites` - Name of the sites (usually 'default', check the URL in your UniFi controller UI if unsure. The site id is in the following part of the URL: `https://192.168.1.1:8443/manage/site/this-is-the-site-id/settings/`).
- `UNFIMP_protocol` - https:// or http://
- `UNFIMP_port` - Usually `8443` or `8843`
- `UNFIMP_version` - e.g. `UDMP-unifiOS` is used for the "Cloud Gateway Ultra"
- `UNFIMP_version` - see below table for details
#### Version table
| Controller | `UNFIMP_version` |
| ------------------------------------------------------ | ------------------------- |
| Cloud Gateway Ultra / UCK cloudkey V2 plus (v4.0.18) | `UDMP-unifiOS` |
| Docker hosted | `v5` |
### Notes
- It is recommended to create a read-only user in your UniFi controller

View File

@@ -295,10 +295,10 @@ def importConfigs (db, all_plugins):
mylog('none', ['[Config] Plugins to load: ', loaded_plugins_prefixes])
conf.plugins_once_run = False
# -----------------
# Plugins END
# -----------------
# HANDLE APP_CONF_OVERRIDE via app_conf_override.json
# Assuming fullConfFolder is defined elsewhere
app_conf_override_path = fullConfFolder + '/app_conf_override.json'
@@ -327,6 +327,9 @@ def importConfigs (db, all_plugins):
else:
mylog('debug', [f"[Config] File {app_conf_override_path} does not exist."])
# -----------------
# HANDLE APP was upgraded message - clear cache
# Check if app was upgraded
with open(applicationPath + '/front/buildtimestamp.txt', 'r') as f:
@@ -346,6 +349,9 @@ def importConfigs (db, all_plugins):
write_notification(f'[Upgrade] : App upgraded 🚀 Please clear the cache: <ol> <li>Click OK below</li> <li>Clear the browser cache (shift + browser refresh button)</li> <li> Clear app cache with the 🔄 (reload) button in the header</li><li>Go to Settings and click Save</li> </ol> Check out new features and what has changed in the <a href="https://github.com/jokob-sk/NetAlertX/releases" target="_blank">📓 release notes</a>.', 'interrupt', timeNowTZ())
# -----------------
# Initialization finished, update DB and API endpoints
# Insert settings into the DB
sql.execute ("DELETE FROM Settings")
# mylog('debug', [f"[Config] conf.mySettingsSQLsafe : '{conf.mySettingsSQLsafe}'"])