summaryrefslogtreecommitdiff
path: root/cmd/authzd/main.go
blob: 05b0b14871ac97e3da99ca4f17a8334f4a225675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"fmt"
	"log"
	"net/http"

	"github.com/xlgmokha/x/pkg/env"
	"gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/app"
)

func main() {
	bindAddr := env.Fetch("BIND_ADDR", "localhost:8080")
	fmt.Printf("Listening on %v\n", bindAddr)
	log.Fatal(http.ListenAndServe(bindAddr, app.New()))
}