Updated /etc/pulp/settings.py to use ALLOWED_HOSTS = ['*'] and restarted all 
services. Still getting 403 errors.
Also tried adding PULP_ALLOWED_HOSTS to 
/etc/systemd/system/multi-user.target.wants/pulp-api.service and replacing 
localhost with 0.0.0.0 as below
Environment=PULP_ALLOWED_HOSTS="['*']"
ExecStart=/usr/local/lib/pulp/bin/gunicorn pulpcore.app.wsgi:application \
          --bind '0.0.0.0:24817' \
--access-logfile

The problem persists.


From: bro...@redhat.com At: 10/02/19 10:37:17To:  Bin Li (BLOOMBERG/ 120 PARK ) 
Cc:  mikedep...@redhat.com,  pulp-list@redhat.com
Subject: Re: [Pulp-list] Access Pulp 3 Api from a remote machine


We do have ALLOWED_HOSTS = '*' in /etc/pulp/settings.py

This variable must be a list, not sure if that is the problem.

ALLOWED_HOSTS = ['*']

As environment variable it would be export PULP_ALLOWED_HOSTS="['*']"

https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts


_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to