Skip to content

Commit adc2051

Browse files
committed
fix: config updated
1 parent f4223e9 commit adc2051

File tree

2 files changed

+0
-77
lines changed

2 files changed

+0
-77
lines changed

config.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,6 @@ roles:
2020
- name: default
2121
public: true
2222

23-
providers:
24-
email:
25-
enabled: ${PROVIDERS_EMAIL_ENABLED|true}
26-
jwt:
27-
accessSecret: ${PROVIDERS_EMAIL_JWT_ACCESS_SECRET|change-me-please}
28-
refreshSecret: ${PROVIDERS_EMAIL_JWT_REFRESH_SECRET|change-me-please}
29-
webhooks:
30-
recoveryPasswordEvent:
31-
url: ${PROVIDERS_EMAIL_WEBHOOKS_RECOVERY_PASSWORD_EVENT|}
32-
registerEvent:
33-
url: ${PROVIDERS_EMAIL_WEBHOOKS_REGISTER_EVENT|}
34-
35-
<<<<<<< HEAD
36-
37-
<<<<<<< Updated upstream
38-
mailersend:
39-
url: https://web-platform.teleus.minsky.cc/auth/recovery?token=
40-
key: Insert MailerSend Key Here
41-
template: 7dnvo4doz6g5r86y
42-
support: test@minsky.cc
43-
name: Bregy
44-
user:
45-
name: Bregy
46-
email: test@minsky.cc
47-
=======
4823
providers:
4924
email:
5025
enabled: ${PROVIDERS_EMAIL_ENABLED|true}
@@ -59,14 +34,8 @@ providers:
5934
registerEvent:
6035
url: ${PROVIDERS_EMAIL_WEBHOOKS_REGISTER_EVENT|}
6136

62-
=======
63-
>>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663
6437
magiclink:
6538
enabled: ${PROVIDERS_MAGICLINK_ENABLED|}
6639
webhooks:
6740
loginEvent:
6841
url: ${PROVIDERS_MAGICLINK_WEBHOOKS_LOGIN_EVENT|}
69-
<<<<<<< HEAD
70-
>>>>>>> Stashed changes
71-
=======
72-
>>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663

config/config.go

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
package config
22

3-
<<<<<<< HEAD
43
type JWT struct {
5-
=======
6-
type JWT2 struct {
7-
>>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663
84
AccessSecret string `yaml:"accessSecret"`
95
RefreshSecret string `yaml:"refreshSecret"`
106
RefreshOptions RefreshOptions `yaml:"refreshOptions"`
@@ -57,12 +53,6 @@ type Role struct {
5753
Public bool `yaml:"public,omitempty"`
5854
}
5955

60-
<<<<<<< HEAD
61-
<<<<<<< Updated upstream
62-
type User struct {
63-
Email string `yaml:"email"`
64-
Password string `yaml:"password"`
65-
=======
6656
type EmailProvider struct {
6757
Enabled bool `yaml:"enabled"`
6858
JWT JWT `yaml:"jwt"`
@@ -93,42 +83,6 @@ type Webhooks struct {
9383
MagicLink MagicLinkWebhooks `yaml:"magicLink"`
9484
}
9585

96-
type EmailWebhooks struct {
97-
RecoveryPasswordEvent Webhook `yaml:"recoveryPasswordEvent"`
98-
RegisterEvent Webhook `yaml:"registerEvent"`
99-
>>>>>>> Stashed changes
100-
=======
101-
type EmailProvider struct {
102-
Enabled bool `yaml:"enabled"`
103-
JWT JWT2 `yaml:"jwt"`
104-
Webhooks EmailWebhooks `yaml:"webhooks"`
105-
>>>>>>> 5e9742aa797eb14dbea4e096bd32c5aa8abce663
106-
}
107-
108-
type MagicLinkProvider struct {
109-
Enabled bool `yaml:"enabled"`
110-
Webhooks MagicLinkWebhooks `yaml:"webhooks"`
111-
}
112-
113-
type Providers struct {
114-
Email EmailProvider `yaml:"email"`
115-
MagicLink MagicLinkProvider `yaml:"magicLink"`
116-
}
117-
118-
type Config struct {
119-
Database Database `yaml:"database"`
120-
API API `yaml:"api"`
121-
Admin Admin `yaml:"admin"`
122-
Roles []Role `yaml:"roles,mapstructure"`
123-
Providers Providers `yaml:"providers"`
124-
Webhooks Webhooks `yaml:"webhooks"`
125-
}
126-
127-
type Webhooks struct {
128-
Email EmailWebhooks `yaml:"email"`
129-
MagicLink MagicLinkWebhooks `yaml:"magicLink"`
130-
}
131-
13286
type EmailWebhooks struct {
13387
RecoveryPasswordEvent Webhook `yaml:"recoveryPasswordEvent"`
13488
RegisterEvent Webhook `yaml:"registerEvent"`

0 commit comments

Comments
 (0)