Update 0.1.6.md
This commit is contained in:
parent
701e3048ad
commit
9252a1d8a5
|
@ -36,7 +36,7 @@ Not yet released.
|
|||
- New default OpenAdmin theme
|
||||
|
||||
|
||||
|
||||
-----
|
||||
|
||||
|
||||
##### BasicAuth for OpenAdmin
|
||||
|
@ -50,10 +50,53 @@ API access is automatically disabled when BasicAuth is enabled.
|
|||
:::
|
||||
|
||||
To enable basic authentication for OpenAdmin, run commands:
|
||||
|
||||
`opencli config update basic_auth yes`
|
||||
|
||||
`opencli config update basic_auth_username STRONG_USERNAME_HERE`
|
||||
|
||||
`opencli config update basic_auth_password STRONG_PASSWORD_HERE`
|
||||
|
||||
|
||||
then reload the OpenAdmin service:
|
||||
|
||||
`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:
|
||||
![default](https://i.postimg.cc/wBGr0gkL/2024-04-05-17-00.png)
|
||||
![example](https://i.postimg.cc/QMtPQHcj/2024-04-05-16-59.png)
|
||||
|
||||
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/"`
|
||||
|
||||
----
|
||||
|
|
Loading…
Reference in a new issue