[DEPRECATE] Warning for PUBLIC_DIR environment variable (#938)

pull/1037/head
Amir Zarrinkafsh 2020-05-21 14:51:28 +10:00 committed by GitHub
parent b264e63235
commit 0f100d4f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -24,11 +24,6 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi
embeddedAssets := "/public_html"
rootFiles := []string{"favicon.ico", "manifest.json", "robots.txt"}
// TODO: Remove in v4.18.0.
if os.Getenv("PUBLIC_DIR") != "" {
logging.Logger().Warn("PUBLIC_DIR environment variable has been deprecated, assets are now embedded.")
}
r := router.New()
r.GET("/", ServeIndex(embeddedAssets, configuration.Server.Path))