Adding custom banners to Package Security Manager#
If desired, you can add custom header and footer messages to your instance of Package Security Manager UI, then configure them using environment variables.
Adding the banners to Package Security Manager#
Editing the banners#
Connect to your instance of Anaconda Sever. Get help from your IT administrator with this step if necessary.
Enter your Package Security Manager base installer directory.
Using your preferred file editor, open the
docker-compose.ymlfile.Find the
environment:section of the file, and configure your header and footer as desired.Save your changes and close the file.
Restart your containers by running the following command:
docker compose up --detach
Banner configurations#
Add or remove the following variables to the environment: section of your docker-compose.yml file to configure your banners. You can use HTML and CSS to further customize the variables. For example, you can use HTML formatting tags such as <br> add a line break to your header.
Caution
The header and footer messages must contain a valid HTML string.
Variable |
Configuration |
|---|---|
|
The text displayed in the header. |
|
The test displayed in the footer. |
|
The header and footer font height, in pixels. Default: 12. |
|
The |
|
The |
|
The |
|
The |
|
The banner background color. Default: #213d5a (navy). |
|
The banner text color. Default: white. |
|
The |
|
The number of lines allocated for header content. Default is equal to the number of <br> tags detected in the message. |
|
The number of lines allocated for footer content. Default is equal to the number of <br> tags detected in the message. |