From 59c954e8ffeb4dc4fce77d278849c645d199022a Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Thu, 17 Dec 2015 18:11:51 +0000 Subject: [PATCH] First step to disable FTP in MirrorManager As discussed in https://github.com/fedora-infra/mirrormanager2/issues/99 This is the first step to remove FTP from MirrorManager. With this change it is no longer possible to enter FTP URLs into MM. Signed-off-by: Adrian Reber --- roles/mirrormanager/frontend2/templates/mirrormanager2.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg b/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg index bcc3288af2..512224ab7f 100644 --- a/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg +++ b/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg @@ -121,6 +121,13 @@ MM_COOKIE_NAME = 'MirrorManager' # decide where to store log files. MM_LOG_DIR = '/var/log/mirrormanager' +# This is used to exclude certain protocols to be entered +# for host category URLs at all. +# The following is the default for Fedora to exclude FTP based +# mirrors to be added. Removing this confguration option +# or setting it to '' removes any protocol restrictions. +MM_PROTOCOL_REGEX = '^(?!ftp)(.*)$' + # If not specified the application will rely on the root_url when sending # emails, otherwise it will use this URL # Default: ``None``.