Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Remove pulp_webserver_static_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Apr 30, 2020
1 parent 126a739 commit add6a7f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGES/6601.removal
@@ -0,0 +1,2 @@
Removed the pulp_webserver_static_dir option.
This fixes a bug where installations served content they should not.
2 changes: 0 additions & 2 deletions roles/pulp-webserver/README.md
Expand Up @@ -22,8 +22,6 @@ Variables:
'127.0.0.1'.
* `pulp_configure_firewall` Install and configure a firewall. Valid values are 'auto', 'firewalld',
and 'none'. Defaults to 'auto' (which is the same as 'firewalld', but may change in the future).
* `pulp_webserver_static_dir` equivalent to `STATIC_ROOT` from `pulpcore` i.e. absolute path where to find
static files.

Plugin Webserver Configs:
-------------------------
Expand Down
1 change: 0 additions & 1 deletion roles/pulp-webserver/defaults/main.yml
Expand Up @@ -6,4 +6,3 @@ pulp_api_host: 127.0.0.1
pulp_api_port: 24817
pulp_configure_firewall: auto
pulp_user_home: '/var/lib/pulp'
pulp_webserver_static_dir: "{{ pulp_user_home | regex_replace('\\/$', '') }}/assets/"
3 changes: 0 additions & 3 deletions roles/pulp-webserver/templates/nginx.conf.j2
Expand Up @@ -42,9 +42,6 @@ http {
# Gunicorn docs suggest this value.
keepalive_timeout 5;

# Path to Pulp's static files.
root {{ pulp_webserver_static_dir }};

location /pulp/content/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down
9 changes: 0 additions & 9 deletions roles/pulp-webserver/templates/pulp-vhost.conf.j2
Expand Up @@ -4,15 +4,6 @@ Define pulp-api {{ pulp_api_host }}:{{ pulp_api_port }}
<VirtualHost *:80>
ServerName {{ ansible_nodename }}

## Vhost docroot
DocumentRoot {{ pulp_webserver_static_dir }}

<Directory "{{ pulp_webserver_static_dir }}">
Options SymLinksIfOwnerMatch
AllowOverride None
Require all granted
</Directory>

## Logging
ErrorLog "{{ pulp_webserver_apache_log_dir }}/pulp_error.log"
ServerSignature Off
Expand Down

0 comments on commit add6a7f

Please sign in to comment.