12b1b0aa22
Support generating an access token for access to our tier0 mirror and other services which are behind a nginx using ngx_http_auth_request_module for authentication. This works as following, nginx requires authentication for a route which is protected and redirects the request to archweb which handles the authentication. Closes: #347
21 lines
761 B
Python
21 lines
761 B
Python
from django.conf.urls import url
|
|
|
|
from devel import views
|
|
|
|
|
|
urlpatterns = [
|
|
url(r'^admin_log/$', views.admin_log),
|
|
url(r'^admin_log/(?P<username>.*)/$', views.admin_log),
|
|
url(r'^clock/$', views.clock, name='devel-clocks'),
|
|
url(r'^tier0mirror/$', views.tier0_mirror, name='tier0-mirror'),
|
|
url(r'^mirrorauth/$', views.tier0_mirror_auth, name='tier0-mirror-atuh'),
|
|
url(r'^$', views.index, name='devel-index'),
|
|
url(r'^stats/$', views.stats, name='devel-stats'),
|
|
url(r'^newuser/$', views.new_user_form),
|
|
url(r'^profile/$', views.change_profile),
|
|
url(r'^reports/(?P<report_name>.*)/(?P<username>.*)/$', views.report),
|
|
url(r'^reports/(?P<report_name>.*)/$', views.report),
|
|
]
|
|
|
|
# vim: set ts=4 sw=4 et:
|