Project

Profile

Help

Issue #9577

Add ability to provide list of headers for pulp_webserver nginx template

Added by jamesmarshall24 18 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Add the ability to specify a list of nginx headers so users can define the headers needed to use the UI installed by pulp_installer.

Example variable structure:

pulp_nginx_user_headers:
  - "X-Content-Type-Options: nosniff"
  - "X-XSS-Protection: 1; mode=block"

Example templating for /roles/pulp_webserver/templates/nginx.conf.j2:

        # headers added with pulp_nginx_user_headers variable
{% for header in nginx_user_headers %}
        add_header {{ header }}
{% endfor %}
        # end of headers added with pulp_nginx_user_headers variable

Please register to edit this issue

Also available in: Atom PDF