mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
New builtin JWT middleware - this one supports encryption and ed25519
Former-commit-id: ca20d256b766e3e8717e91de7a3f3b5f213af0bc
This commit is contained in:
@@ -14,7 +14,9 @@ func main() {
|
||||
// Good when you have two configurations, one for development and a different one for production use.
|
||||
// If iris.YAML's input string argument is "~" then it loads the configuration from the home directory
|
||||
// and can be shared between many iris instances.
|
||||
app.Listen(":8080", iris.WithConfiguration(iris.YAML("./configs/iris.yml")))
|
||||
cfg := iris.YAML("./configs/iris.yml")
|
||||
addr := cfg.Other["Addr"].(string)
|
||||
app.Listen(addr, iris.WithConfiguration(cfg))
|
||||
|
||||
// or before run:
|
||||
// app.Configure(iris.WithConfiguration(iris.YAML("./configs/iris.yml")))
|
||||
|
||||
Reference in New Issue
Block a user