diff --git a/src/config.ps1 b/src/config.ps1 new file mode 100644 index 0000000..bd20c7d --- /dev/null +++ b/src/config.ps1 @@ -0,0 +1,31 @@ +function Initialize-SamyConfig { + [CmdletBinding()] + param() + + # Listening port for HTTP UI + $Script:Port = 8082 + + # Configurable endpoints + $Global:DattoWebhookUrl = 'https://bananas.svstools.ca/dattormm' + + # Repo values are already set by samy.ps1 bootstrap: + # $Script:SamyRepoBase + # $Script:SamyBranch + + if (Get-Command Set-SvsPrinterRepoConfig -ErrorAction SilentlyContinue) { + Set-SvsPrinterRepoConfig -RepoBase $Script:SamyRepoBase -Branch $Script:SamyBranch + } + + # Build all remote URLs + $Script:SamyTopLogoUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SVS_logo.svg?raw=1" + $Script:SamyBgLogoUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SAMY.png?raw=1" + $Script:SamyFaviconUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SVS_Favicon.ico?raw=1" + $Script:SamyCssUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.css?raw=1" + $Script:SamyJsUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.js?raw=1" + $Script:SamyHtmlUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.html?raw=1" + $Script:SamyTasksUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.tasks.json?raw=1" + $Script:SamyFunctionsUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.functions.ps1?raw=1" + + # Misc + $Script:SamyHintText = "" +}