|
@@ -57,6 +57,11 @@ func IsDebug() bool {
|
|
|
return os.Getenv("XUI_DEBUG") == "true"
|
|
return os.Getenv("XUI_DEBUG") == "true"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// IsSkipHSTS returns true if skipping HSTS mode is enabled via the XUI_SKIP_HSTS environment variable.
|
|
|
|
|
+func IsSkipHSTS() bool {
|
|
|
|
|
+ return os.Getenv("XUI_SKIP_HSTS") == "true"
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// GetBinFolderPath returns the path to the binary folder, defaulting to "bin" if not set via XUI_BIN_FOLDER.
|
|
// GetBinFolderPath returns the path to the binary folder, defaulting to "bin" if not set via XUI_BIN_FOLDER.
|
|
|
func GetBinFolderPath() string {
|
|
func GetBinFolderPath() string {
|
|
|
binFolderPath := os.Getenv("XUI_BIN_FOLDER")
|
|
binFolderPath := os.Getenv("XUI_BIN_FOLDER")
|