mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
fix #1612 by adding robot.txt file
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
User-Agent: *
|
||||
Disallow: /
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Core urls."""
|
||||
|
||||
from django.urls import path
|
||||
from django.views.generic.base import TemplateView
|
||||
|
||||
from . import views
|
||||
|
||||
@@ -31,4 +32,5 @@ urlpatterns = [
|
||||
path('user/profile/', views.profile, name="user_profile"),
|
||||
path('user/api/', views.api_access, name="user_api_access"),
|
||||
path('user/security/', views.security, name="user_security"),
|
||||
path('robots.txt', TemplateView.as_view(template_name="core/robots.txt", content_type="text/plain")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user