From 2d0ea5ba085f9caa84a7e7b1fd55f653834009aa Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:37:03 +0800 Subject: sshPubkey* shall no longer be global variables --- http_global.go | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 http_global.go (limited to 'http_global.go') diff --git a/http_global.go b/http_global.go deleted file mode 100644 index 6e236a7..0000000 --- a/http_global.go +++ /dev/null @@ -1,14 +0,0 @@ -// SPDX-License-Identifier: AGPL-3.0-only -// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu - -package main - -// globalData is passed as "global" when rendering HTML templates and contains -// global data that should stay constant throughout an execution of Lindenii -// Forge as no synchronization mechanism is provided for updating it. -var globalData = map[string]any{ - "server_public_key_string": &serverPubkeyString, - "server_public_key_fingerprint": &serverPubkeyFP, - "forge_version": VERSION, - // Some other ones are populated after config parsing -} -- cgit v1.2.3