QuickStart Guide
Add Security Headers
2min
Complete the following steps to add new security headers to Litmus Edge Manager.
Refer to the following directives when completing the steps below.
- Connect to Litmus Edge Manager through SSH. Refer to Access to Litmus Edge Manager for default login credentials.
- Open or create the following file: /etc/nginx/snippets/sec-hdrs.conf.
- If the file exists, run the following command to create a backup by running the copy command. cp /etc/nginx/snippets/sec-hdrs.conf /etc/nginx/snippets/sec-hdrs.conf.bak
- Add or modify the file by using the directives above in Security Header Directives.
- Use the add_header directive to add your header. Ensure that each add_header statement ends with a semicolon (;).
- If a header has components separated by semicolons, use double quotation marks ("") to enclose the text.
- After editing the file, validate the Nginx configuration with the following command. sudo nginx -t
- If the validation passes without errors, reload Nginx to apply the changes with the following command. sudo systemctl reload nginx