Add URL for Tegola to configuration

Avoid cross-environment pollution.
This commit is contained in:
Eli Ribble 2026-01-14 21:39:58 +00:00
parent 21a8f9622a
commit 4f0b73c769
No known key found for this signature in database
3 changed files with 15 additions and 5 deletions

View file

@ -7,7 +7,7 @@ import (
"strconv"
)
var Bind, ClientID, ClientSecret, Environment, FieldseekerSchemaDirectory, MapboxToken, PGDSN, URLReport, URLSync, FilesDirectoryPublic, FilesDirectoryUser string
var Bind, ClientID, ClientSecret, Environment, FilesDirectoryPublic, FilesDirectoryUser, FieldseekerSchemaDirectory, MapboxToken, PGDSN, URLReport, URLSync, URLTegola string
// Build the ArcGIS authorization URL with PKCE
func BuildArcGISAuthURL(clientID string) string {
@ -59,6 +59,10 @@ func Parse() error {
if URLSync == "" {
return fmt.Errorf("You must specify a non-empty URL_SYNC")
}
URLTegola = os.Getenv("URL_TEGOLA")
if URLTegola == "" {
return fmt.Errorf("You must specify a non-empty URL_TEGOLA")
}
Bind = os.Getenv("BIND")
if Bind == "" {
Bind = ":9001"