2019-11-02 14:32:58 +00:00
|
|
|
package suites
|
|
|
|
|
2020-05-27 11:55:44 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
)
|
2019-11-02 14:32:58 +00:00
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// BaseDomain the base domain.
|
2019-11-02 14:32:58 +00:00
|
|
|
var BaseDomain = "example.com:8080"
|
|
|
|
|
2020-05-27 11:55:44 +00:00
|
|
|
// PathPrefix the prefix/url_base of the login portal.
|
|
|
|
var PathPrefix = os.Getenv("PathPrefix")
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// LoginBaseURL the base URL of the login portal.
|
2019-11-24 20:27:59 +00:00
|
|
|
var LoginBaseURL = fmt.Sprintf("https://login.%s", BaseDomain)
|
2019-11-02 14:32:58 +00:00
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// SingleFactorBaseURL the base URL of the singlefactor domain.
|
2019-11-02 14:32:58 +00:00
|
|
|
var SingleFactorBaseURL = fmt.Sprintf("https://singlefactor.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// AdminBaseURL the base URL of the admin domain.
|
2019-11-02 14:32:58 +00:00
|
|
|
var AdminBaseURL = fmt.Sprintf("https://admin.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// MailBaseURL the base URL of the mail domain.
|
2019-11-02 14:32:58 +00:00
|
|
|
var MailBaseURL = fmt.Sprintf("https://mail.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// HomeBaseURL the base URL of the home domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var HomeBaseURL = fmt.Sprintf("https://home.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// PublicBaseURL the base URL of the public domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var PublicBaseURL = fmt.Sprintf("https://public.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// SecureBaseURL the base URL of the secure domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var SecureBaseURL = fmt.Sprintf("https://secure.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// DevBaseURL the base URL of the dev domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var DevBaseURL = fmt.Sprintf("https://dev.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// MX1MailBaseURL the base URL of the mx1.mail domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var MX1MailBaseURL = fmt.Sprintf("https://mx1.mail.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// MX2MailBaseURL the base URL of the mx2.mail domain.
|
2019-11-24 20:27:59 +00:00
|
|
|
var MX2MailBaseURL = fmt.Sprintf("https://mx2.mail.%s", BaseDomain)
|
|
|
|
|
2021-05-04 22:06:05 +00:00
|
|
|
// OIDCBaseURL the base URL of the oidc domain.
|
|
|
|
var OIDCBaseURL = fmt.Sprintf("https://oidc.%s", BaseDomain)
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// DuoBaseURL the base URL of the Duo configuration API.
|
2019-11-24 20:27:59 +00:00
|
|
|
var DuoBaseURL = "https://duo.example.com"
|
|
|
|
|
2020-05-02 05:06:39 +00:00
|
|
|
// AutheliaBaseURL the base URL of Authelia service.
|
2020-03-03 07:18:25 +00:00
|
|
|
var AutheliaBaseURL = "https://authelia.example.com:9091"
|
2020-05-02 16:20:40 +00:00
|
|
|
|
|
|
|
const stringTrue = "true"
|
|
|
|
|
|
|
|
const testUsername = "john"
|
|
|
|
const testPassword = "password"
|