diff --git a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
index 8f9d27e44..fffb72f50 100644
--- a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
+++ b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
@@ -94,9 +94,6 @@ public class CommonSettingsModel : BaseModel
[GrandResourceDisplayName("Admin.Settings.GeneralCommon.UseSystemEmailForContactUsForm")]
public bool UseSystemEmailForContactUsForm { get; set; }
- [GrandResourceDisplayName("Admin.Settings.GeneralCommon.AllowToReadLetsEncryptFile")]
- public bool AllowToReadLetsEncryptFile { get; set; }
-
[GrandResourceDisplayName("Admin.Settings.GeneralCommon.AllowToSelectStore")]
public bool AllowToSelectStore { get; set; }
diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
index c92c6ce0d..c1cf91358 100644
--- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
+++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
@@ -10107,9 +10107,6 @@
Allow to use slash char
-
- Allow to read Let's Encrypt file
-
Allow to select admin theme
diff --git a/src/Web/Grand.Web/Controllers/LetsEncryptController.cs b/src/Web/Grand.Web/Controllers/LetsEncryptController.cs
deleted file mode 100644
index b00e36952..000000000
--- a/src/Web/Grand.Web/Controllers/LetsEncryptController.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using Grand.Business.Core.Interfaces.Storage;
-using Grand.Domain.Common;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-
-namespace Grand.Web.Controllers;
-
-[AllowAnonymous]
-public class LetsEncryptController : Controller
-{
- private readonly CommonSettings _commonSettings;
- private readonly IMediaFileStore _mediaFileStore;
-
- public LetsEncryptController(CommonSettings commonSettings, IMediaFileStore mediaFileStore)
- {
- _commonSettings = commonSettings;
- _mediaFileStore = mediaFileStore;
- }
-
- public virtual async Task
Index(string fileName)
- {
- if (!_commonSettings.AllowToReadLetsEncryptFile)
- return Content("");
-
- if (fileName == null)
- return Content("");
-
- var filepath = _mediaFileStore.Combine("assets", "acme", Path.GetFileName(fileName));
- var fileInfo = await _mediaFileStore.GetFileInfo(filepath);
- if (fileInfo != null) return File(await _mediaFileStore.ReadAllText(filepath), "text/plain");
- return Content("");
- }
-}
\ No newline at end of file