|
@@ -36,7 +36,7 @@ Not yet released.
|
|
- New default OpenAdmin theme
|
|
- New default OpenAdmin theme
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+-----
|
|
|
|
|
|
|
|
|
|
##### BasicAuth for OpenAdmin
|
|
##### BasicAuth for OpenAdmin
|
|
@@ -50,10 +50,53 @@ API access is automatically disabled when BasicAuth is enabled.
|
|
:::
|
|
:::
|
|
|
|
|
|
To enable basic authentication for OpenAdmin, run commands:
|
|
To enable basic authentication for OpenAdmin, run commands:
|
|
|
|
+
|
|
`opencli config update basic_auth yes`
|
|
`opencli config update basic_auth yes`
|
|
|
|
+
|
|
`opencli config update basic_auth_username STRONG_USERNAME_HERE`
|
|
`opencli config update basic_auth_username STRONG_USERNAME_HERE`
|
|
|
|
+
|
|
`opencli config update basic_auth_password STRONG_PASSWORD_HERE`
|
|
`opencli config update basic_auth_password STRONG_PASSWORD_HERE`
|
|
|
|
|
|
|
|
+
|
|
then reload the OpenAdmin service:
|
|
then reload the OpenAdmin service:
|
|
|
|
+
|
|
`service admin reload`
|
|
`service admin reload`
|
|
|
|
|
|
|
|
+
|
|
|
|
+##### Custom Templates for OpenAdmin and OpenPanel
|
|
|
|
+
|
|
|
|
+Starting v0.1.6 you can set [custom templates](https://dev.openpanel.co/templates/) for both OpenPanel and OpenAdmin interfaces!
|
|
|
|
+
|
|
|
|
+Examples:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+To create new templates copy the default templates folders:
|
|
|
|
+
|
|
|
|
+For OpenPanel: `cp /usr/local/panel/templates/ /home/custom_template/`
|
|
|
|
+
|
|
|
|
+For OpenAdmin: `cp /usr/local/admin/templates/ /home/custom_admin_template/`
|
|
|
|
+
|
|
|
|
+and then make the changes over html/css file.
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+
|
|
|
|
+To change theme for OpenPanel, run command:
|
|
|
|
+
|
|
|
|
+`opencli config update template NAME_HERE`
|
|
|
|
+
|
|
|
|
+instead of *NAME_HERE* set either just the folder name in `/usr/local/panel/` or a full path, example:
|
|
|
|
+
|
|
|
|
+`opencli config update template "/home/custom_template/"`
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+
|
|
|
|
+To change theme for OpenAdmin, run command:
|
|
|
|
+
|
|
|
|
+`opencli config update admin_template NAME_HERE`
|
|
|
|
+
|
|
|
|
+instead of *NAME_HERE* set either just the folder name in `/usr/local/admin/` or a full path, example:
|
|
|
|
+
|
|
|
|
+`opencli config update admin_template "/home/custom_admin_template/"`
|
|
|
|
+
|
|
|
|
+----
|