Commit cc0e8772e5d634db1e0f9cd8f023434afe50a26e

Authored by Sergio Oliveira
1 parent 2c7cd899

Added PROXIED_APPS dict to configured all proxied apps

src/proxy/gitlab/views.py
... ... @@ -5,5 +5,5 @@ from ..utils.views import ColabProxyView
5 5  
6 6  
7 7 class GitlabProxyView(ColabProxyView):
8   - upstream = settings.COLAB_GITLAB_URL
  8 + upstream = settings.PROXIED_APPS['gitlab']['upstream']
9 9 diazo_theme_template = 'proxy/gitlab.html'
... ...
src/proxy/jenkins/views.py
... ... @@ -5,4 +5,4 @@ from ..utils.views import ColabProxyView
5 5  
6 6  
7 7 class JenkinsProxyView(ColabProxyView):
8   - upstream = settings.COLAB_CI_URL
  8 + upstream = settings.PROXIED_APPS['jenkins']['upstream']
... ...
src/proxy/redmine/views.py
... ... @@ -5,5 +5,5 @@ from ..utils.views import ColabProxyView
5 5  
6 6  
7 7 class RedmineProxyView(ColabProxyView):
8   - upstream = settings.COLAB_REDMINE_URL
  8 + upstream = settings.PROXIED_APPS['redmine']['upstream']
9 9 diazo_theme_template = 'proxy/redmine.html'
... ...
src/proxy/trac/views.py
... ... @@ -8,7 +8,7 @@ from .models import Wiki, Ticket, Revision
8 8  
9 9  
10 10 class TracProxyView(HitCounterViewMixin, ColabProxyView):
11   - upstream = settings.COLAB_TRAC_URL
  11 + upstream = settings.PROXIED_APPS['trac']['upstream']
12 12 diazo_theme_template = 'proxy/trac.html'
13 13  
14 14 def get_object(self):
... ...