diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:37:03 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:37:03 +0800 |
commit | 2d0ea5ba085f9caa84a7e7b1fd55f653834009aa (patch) | |
tree | 46278813d2e2f7dd080c9289321c1021fa619e80 /main.go | |
parent | ircSend* shall no longer be global variables (diff) | |
download | forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.tar.gz forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.tar.zst forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.zip |
sshPubkey* shall no longer be global variables
Diffstat (limited to '')
-rw-r--r-- | main.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -36,6 +36,12 @@ func main() { panic(err) } s.staticHandler = http.StripPrefix("/-/static/", http.FileServer(http.FS(staticFS))) + s.globalData = map[string]any{ + "server_public_key_string": &s.serverPubkeyString, + "server_public_key_fingerprint": &s.serverPubkeyFP, + "forge_version": VERSION, + // Some other ones are populated after config parsing + } if err := s.loadConfig(*configPath); err != nil { slog.Error("loading configuration", "error", err) |