- Add cache refresh mechanism for config updates - Implement selective re-initialization for NIP-11 relay info changes - Categorize configs as dynamic vs restart-required using requires_restart field - Enhance admin API responses with restart requirement information - Add comprehensive test for dynamic config updates - Update documentation for dynamic configuration capabilities Most relay settings can now be updated via admin API without requiring restart, improving operational flexibility while maintaining stability for critical changes.
33 lines
1021 B
C
33 lines
1021 B
C
/*
|
|
* C-Relay Main Header - Version and Metadata Information
|
|
*
|
|
* This header contains version information and relay metadata that is
|
|
* automatically updated by the build system (build_and_push.sh).
|
|
*
|
|
* The build_and_push.sh script updates VERSION and related macros when
|
|
* creating new releases.
|
|
*/
|
|
|
|
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
// Version information (auto-updated by build_and_push.sh)
|
|
#define VERSION "v0.4.3"
|
|
#define VERSION_MAJOR 0
|
|
#define VERSION_MINOR 4
|
|
#define VERSION_PATCH 3
|
|
|
|
// Relay metadata (authoritative source for NIP-11 information)
|
|
#define RELAY_NAME "C-Relay"
|
|
#define RELAY_DESCRIPTION "High-performance C Nostr relay with SQLite storage"
|
|
#define RELAY_CONTACT ""
|
|
#define RELAY_SOFTWARE "https://git.laantungir.net/laantungir/c-relay.git"
|
|
#define RELAY_VERSION VERSION // Use the same version as the build
|
|
#define SUPPORTED_NIPS "1,2,4,9,11,12,13,15,16,20,22,33,40,42"
|
|
#define LANGUAGE_TAGS ""
|
|
#define RELAY_COUNTRIES ""
|
|
#define POSTING_POLICY ""
|
|
#define PAYMENTS_URL ""
|
|
|
|
#endif /* MAIN_H */
|