From cde41b82b2d65203def73ef7ee1c78a0a4734c9c Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Thu, 9 Apr 2026 16:45:02 -0400 Subject: [PATCH] base URL param for config --- data/config.example.json | 3 ++- src/main/config.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/config.example.json b/data/config.example.json index 32664ac..35ecc0e 100644 --- a/data/config.example.json +++ b/data/config.example.json @@ -12,6 +12,7 @@ "logo_path": "./data/astraltech_logo_large.png" }, "server_config": { - "port": 8080 + "port": 8080, + "base_url": "https://profile.example.com" } } diff --git a/src/main/config.go b/src/main/config.go index d70a7a5..e4501e4 100644 --- a/src/main/config.go +++ b/src/main/config.go @@ -22,7 +22,8 @@ type StyleConfig struct { } type WebserverConfig struct { - Port int `json:"port"` + Port int `json:"port"` + BaseURL string `json:"base_url"` } type ServerConfig struct {