Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 640 Bytes
// Package main provide one-line integration with
package main
import (
func main() {
app := iris.New()
app.Get("/", func(ctx iris.Context) {
ctx.Writef("Hello from SECURE SERVER!")
app.Get("/test2", func(ctx iris.Context) {
ctx.Writef("Welcome to secure server from /test2!")
app.Get("/redirect", func(ctx iris.Context) {
// NOTE: This will not work on domains like this,
// use real whitelisted domain(or domains split by whitespaces)
// and a non-public e-mail instead.
app.Run(iris.AutoTLS(":443", "", ""))
You can’t perform that action at this time.