mirror of
https://github.com/kataras/iris.git
synced 2025-03-20 23:56:28 +01:00
fixes
Former-commit-id: d12fa8ee9af63187a2f143f27b08cbdb80609e2a
This commit is contained in:
parent
78e5e6d626
commit
ba2919b4c2
|
@ -21,10 +21,9 @@ func main() {
|
||||||
|
|
||||||
// to start a new server listening at :80 and redirects
|
// to start a new server listening at :80 and redirects
|
||||||
// to the secure address, then:
|
// to the secure address, then:
|
||||||
target, _ := url.Parse("https://127.0.1:443")
|
target, _ := url.Parse("https://127.0.0.1:443")
|
||||||
go host.NewRedirection("127.0.0.1:80", target, 301).ListenAndServe()
|
go host.NewRedirection("127.0.0.1:80", target, 301).ListenAndServe()
|
||||||
|
|
||||||
// start the server (HTTPS) on port 443, this is a blocking func
|
// start the server (HTTPS) on port 443, this is a blocking func
|
||||||
app.Run(iris.TLS("127.0.0.1:443", "mycert.cert", "mykey.key"))
|
app.Run(iris.TLS("127.0.0.1:443", "mycert.cert", "mykey.key"))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user