config

package
v0.0.0-...-5480aad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cors = cors.Config{
	AllowOrigins:     strings.Join(origins[:], ","),
	AllowMethods:     "GET,HEAD,OPTIONS,POST,PUT",
	AllowHeaders:     "Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Request-Headers, token, Access-Control-Allow-Origin, Authorization, Bearer, login",
	ExposeHeaders:    "Content-Length",
	AllowCredentials: true,
}
View Source
var IPport, _ = helper.GetAddress()
View Source
var Internalhost string = os.Getenv("INTERNALHOST") + ":" + os.Getenv("PORT")
View Source
var Iteung = fiber.Config{
	Prefork:       true,
	CaseSensitive: true,
	StrictRouting: true,
	ServerHeader:  "Makmur",
	AppName:       "Makmur ai",
}
View Source
var PrivateKey = os.Getenv("PRIVATEKEY")
View Source
var PublicKey = os.Getenv("PUBLICKEY")

Functions

func SetAccessControlHeaders

func SetAccessControlHeaders(w http.ResponseWriter, r *http.Request) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL