mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[DEPRECATE] Warning for PUBLIC_DIR environment variable (#938)
This commit is contained in:
parent
b264e63235
commit
0f100d4f7b
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user