QuickStart Guide

Add Security Headers

2min

Complete the following steps to add new security headers to Litmus Edge Manager.

Security Header Directives

Refer to the following directives when completing the steps below.

Shell


Add New Security Headers

  1. Connect to Litmus Edge Manager through SSH. Refer to Access to Litmus Edge Manager for default login credentials.
  2. Open or create the following file: /etc/nginx/snippets/sec-hdrs.conf.
  3. 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
  4. 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.
  5. After editing the file, validate the Nginx configuration with the following command. sudo nginx -t
  6. If the validation passes without errors, reload Nginx to apply the changes with the following command. sudo systemctl reload nginx