diff --git a/elements/epel/pre-install.d/05-rpm-epel-release b/elements/epel/pre-install.d/05-rpm-epel-release
index 33b66ac0b..efdd0d7f2 100755
--- a/elements/epel/pre-install.d/05-rpm-epel-release
+++ b/elements/epel/pre-install.d/05-rpm-epel-release
@@ -12,7 +12,7 @@ if [ 'amd64' = "$ARCH" ] ; then
     ARCH="x86_64"
 fi
 
-BASE_URL=http://download.fedoraproject.org/pub/epel
+BASE_URL=${DIB_EPEL_MIRROR:-http://download.fedoraproject.org/pub/epel}
 case "$DISTRO_NAME" in
     rhel7|centos7)
         RELEASE=7