Skip to content

Commit

Permalink
pelican: Update ProxyPass for Pelican URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Mar 25, 2023
1 parent 6c57556 commit 49236ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions salt/apache/files/sites/pelican.conf.include
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ RequestHeader unset X-Forwarded-Proto
RequestHeader set X-Forwarded-Proto https env=HTTPS

<Location "/">
{#- Match the URL patterns in pelican-frontend's urls.py files. #}
{%- for endpoint in ['api', 'datasets', 'data_items'] %}
ProxyPass /{{ endpoint }}/ http://127.0.0.1:{{ django_port }}/{{ endpoint }}/ timeout={{ timeout }}
ProxyPassReverse /{{ endpoint }}/ http://127.0.0.1:{{ django_port }}/{{ endpoint }}/
{% endfor %}
ProxyPass /api/ http://127.0.0.1:{{ django_port }}/api/ timeout={{ timeout }}
ProxyPassReverse /api/ http://127.0.0.1:{{ django_port }}/api/
ProxyPass / http://127.0.0.1:{{ port }}/
ProxyPassReverse / http://127.0.0.1:{{ port }}/

Expand Down

0 comments on commit 49236ed

Please sign in to comment.