We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb452ef commit 4931d4cCopy full SHA for 4931d4c
2 files changed
internal/ctf/ctfd.go
@@ -1,6 +1,7 @@
1
package ctf
2
3
import (
4
+ "fmt"
5
"instancer/internal/env"
6
7
ctfd "github.com/ctfer-io/go-ctfd/api"
@@ -16,6 +17,7 @@ type Client struct {
16
17
func New() *Client {
18
c := env.Get()
19
20
+ fmt.Println(c.CTFd.URL)
21
nonce, session, err := ctfd.GetNonceAndSession(c.CTFd.URL)
22
if err != nil {
23
logrus.Fatalf("Failed getting nonce and session: %s", err)
internal/env/config.go
@@ -9,7 +9,7 @@ type Config struct {
9
CTFd struct {
10
URL string `env:"URL"`
11
Token string `env:"TOKEN"`
12
- }
+ } `envPrefix:"CTFD_"`
13
14
Discord struct {
15
WebhookId uint64 `env:"WEBHOOK_ID"`
0 commit comments