Przeglądaj źródła

Update 0.1.6.md

Stefan Pejcic 1 rok temu
rodzic
commit
701e3048ad
1 zmienionych plików z 11 dodań i 2 usunięć
  1. 11 2
      documentation/docs/changelog/0.1.6.md

+ 11 - 2
documentation/docs/changelog/0.1.6.md

@@ -24,7 +24,7 @@ Not yet released.
 - **OpenAdmin > ModSecurity** interface.
 - `opencli nginx-modsec` script that allows admins to: update OWASP Core Ruleset, List ModSecurity rules and Logs, Enable/Disable Rules and view domain settings.
 - [Custom OpenPanel and OpenAdmin templates](https://community.openpanel.co/d/32-new-custom-openpanel-and-openadmin-templates-in-v016) can now be defined by the Administrator
-- BasicAuth for OpenAdmin panel
+- [BasicAuth for OpenAdmin panel](#basicauth-for-openadmin)
 
 ### 💅 Polish
 - Added check if docker images exist before creating plans.
@@ -39,7 +39,7 @@ Not yet released.
 
 
 
-## BasicAuth for OpenAdmin
+##### BasicAuth for OpenAdmin
 
 As an additional security measure, [BasicAuth](https://en.wikipedia.org/wiki/Basic_access_authentication) can be enabled for OpenAdmin panel. [Instruction](/docs/admin/scripts/openpanel_config/#admin_template)
 
@@ -48,3 +48,12 @@ As an additional security measure, [BasicAuth](https://en.wikipedia.org/wiki/Bas
 :::danger
 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`
+