Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing snippets for galaxy ui #66

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions MANIFEST.IN
@@ -1 +1,3 @@
recursive-include galaxy_ng/app/static/galaxy_ng *
include LICENSE
include galaxy_ng/app/webserver_snippets/*
1 change: 1 addition & 0 deletions galaxy_ng/app/settings.py
Expand Up @@ -19,6 +19,7 @@
# FIXME(cutwater): 1. Rename GALAXY_API_ROOT in pulp-ansible to ANSIBLE_API_ROOT
# 2. Rename API_PATH_PREFIX to GALAXY_API_ROOT
GALAXY_API_PATH_PREFIX = "/api/galaxy"
STATIC_URL = "/static/"

# Local rest framework settings
# -----------------------------
Expand Down
Empty file.
9 changes: 9 additions & 0 deletions galaxy_ng/app/webserver_snippets/apache.conf
@@ -0,0 +1,9 @@
ProxyPass /static/ http://${pulp-api}/static/
ProxyPassReverse /static/ http://${pulp-api}/static/

RewriteEngine on
RewriteCond "%{REQUEST_FILENAME}" !-f
RewriteCond "%{REQUEST_FILENAME}" !-d
RewriteRule "^/[a-zA-Z0-9_]*$" "http://${pulp-api}/static/galaxy_ng/index.html" [P]
ProxyPass "/" "http://${pulp-api}/static/galaxy_ng/index.html"
ProxyPassReverse "/" "http://${pulp-api}/static/galaxy_ng/index.html"
10 changes: 10 additions & 0 deletions galaxy_ng/app/webserver_snippets/nginx.conf
@@ -0,0 +1,10 @@
location /static/ {
proxy_redirect off;
proxy_pass http://pulp-api/static/;
}

location / {
rewrite /[a-zA-Z0-9_]*$ /static/galaxy_ng/index.html break;
proxy_redirect off;
proxy_pass http://pulp-api/static/galaxy_ng/index.html;
}