enable acme challenge

pull/94/head
eric 2019-01-24 16:54:23 -05:00
parent bb88c1c4b1
commit db14da1d44
2 changed files with 4 additions and 0 deletions

1
static/lencrypt/test Normal file
View File

@ -0,0 +1 @@
surprise!

View File

@ -7,6 +7,7 @@ from ckeditor_uploader import views as ckedit_views
from regluit.admin import site
from regluit.core.sitemaps import WorkSitemap, PublisherSitemap
from regluit.frontend.views import static_redirect_view
sitemaps = {
'works': WorkSitemap,
@ -37,4 +38,6 @@ urlpatterns = [
name='django.contrib.sitemaps.views.sitemap'),
url(r'^sitemap-(?P<section>.+)\.xml$', sitemap, {'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'),
url(r'^\.well-known/acme-challenge/(?P<file_name>[\w\.]*)',
static_redirect_view, {'dir': 'lencrypt'}),
]