-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
300d5d3
commit 8ff078a
Showing
20 changed files
with
150 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,7 @@ func notifyCourseCreated(d MailTmpl, mailAddr string, subject string) error { | |
log.Println(mailAddr) | ||
var body bytes.Buffer | ||
_ = templ.ExecuteTemplate(&body, "mail-course-registered.gotemplate", d) | ||
return tools.SendMail(tools.Cfg.MailServer, "[email protected]", subject, body.String(), []string{mailAddr}) | ||
return tools.SendMail(tools.Cfg.Mail.Server, tools.Cfg.Mail.Sender, subject, body.String(), []string{mailAddr}) | ||
} | ||
|
||
func getSchedule(c *gin.Context) { | ||
|
@@ -188,7 +188,7 @@ func getSchedule(c *gin.Context) { | |
return | ||
} | ||
//todo figure out right token | ||
campus, err := campusonline.New(tools.Cfg.CampusToken[0], "") | ||
campus, err := campusonline.New(tools.Cfg.Campus.Tokens[0], "") | ||
if err != nil { | ||
log.WithError(err).Error("Can't create campus client") | ||
return | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,7 +191,7 @@ func forgotPassword(email string) { | |
body := fmt.Sprintf("Hello!\n"+ | ||
"You have been invited to use TUM-Live. You can set a password for your account here: https://live.rbg.tum.de/setPassword/%v\n"+ | ||
"After setting a password you can log in with the email this message was sent to. Please note that this is not your TUMOnline account.\n"+ | ||
"If you have any further questions please reach out to [email protected]", registerLink.RegisterSecret) | ||
"If you have any further questions please reach out to "+tools.Cfg.Mail.Sender, registerLink.RegisterSecret) | ||
err = tools.SendPasswordMail(email, body) | ||
if err != nil { | ||
log.Println("couldn't send password mail") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
lrz: | ||
name: "Erika Mustermann" | ||
email: "[email protected]" | ||
phone: "0123456789" | ||
uploadUrl: "https://example.lrz.de/upload" | ||
subDir: "RBG" | ||
mail: | ||
sender: "[email protected]" | ||
server: "mailrelay.example.org" | ||
SMIMECert: "/path/to/cert.pem" | ||
SMIMEKey: "/path/to/key.pem" | ||
db: | ||
user: "root" | ||
password: "example" | ||
database: "tumlive" | ||
campus: | ||
base: "https://example.tum.de/api/v1/" | ||
tokens: | ||
- "secret1" | ||
- "secret2" | ||
ldap: | ||
url: "ldap://abc.de" | ||
user: "user" | ||
password: "secret" | ||
baseDn: "dc=example,dc=de" | ||
userDn: "uid=%s,ou=people,dc=example,dc=de" | ||
paths: | ||
static: "/var/www/static" | ||
mass: "/srv/ceph/live" | ||
auths: | ||
smpUser: "username" | ||
smpPassword: "password" | ||
pwrCrtlAuth: "user:password" | ||
camAuth: "user:password" | ||
ingestBase: "rtmp://ingest.tum.live/" | ||
cookieStoreSecret: "put 40 random characters here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.