v0.2.2 - Working on config setup
This commit is contained in:
113
relay.log
113
relay.log
@@ -1,83 +1,50 @@
|
||||
[34m[1m=== C Nostr Relay Server ===[0m
|
||||
[32m[SUCCESS][0m Database connection established
|
||||
[34m[INFO][0m Initializing configuration system...
|
||||
[34m[INFO][0m Configuration directory: %s
|
||||
/home/teknari/.config/c-relay
|
||||
[34m[INFO][0m Configuration file: %s
|
||||
/home/teknari/.config/c-relay/c_relay_config_event.json
|
||||
[34m[INFO][0m Initializing configuration database statements...
|
||||
[32m[SUCCESS][0m Configuration database statements initialized
|
||||
[34m[INFO][0m Generating missing configuration file...
|
||||
[34m[INFO][0m Using private key from environment variable
|
||||
[34m[INFO][0m Creating configuration Nostr event...
|
||||
[32m[SUCCESS][0m Configuration Nostr event created successfully
|
||||
Event ID: 03021d58b91941a3bb9284ee704e069c50c9ac09a20eb049d8de676757dde83a
|
||||
Public Key: 8d8fbfb027872f13ed09e9e61f1d09473f3bec24bcfa9183e76cc1ceb789eb5e
|
||||
[34m[INFO][0m Stored admin public key in configuration database
|
||||
Admin Public Key: 8d8fbfb027872f13ed09e9e61f1d09473f3bec24bcfa9183e76cc1ceb789eb5e
|
||||
[32m[SUCCESS][0m Configuration file written successfully
|
||||
File: /home/teknari/.config/c-relay/c_relay_config_event.json
|
||||
[32m[SUCCESS][0m Configuration file generated successfully
|
||||
[34m[INFO][0m Loading configuration from all sources...
|
||||
[34m[INFO][0m Configuration file found, attempting to load...
|
||||
[34m[INFO][0m Loading configuration from file...
|
||||
[34m[INFO][0m Validating configuration event...
|
||||
[34m[INFO][0m Configuration event structure validation passed
|
||||
[34m[INFO][0m Configuration tags validation passed (%d tags)
|
||||
Found 27 configuration tags
|
||||
[33m[WARNING][0m Signature verification not yet implemented - accepting event
|
||||
[32m[SUCCESS][0m Applied configuration from file
|
||||
Applied 27 configuration values
|
||||
[32m[SUCCESS][0m Configuration event validation and application completed
|
||||
[32m[SUCCESS][0m Configuration loaded from file successfully
|
||||
[32m[SUCCESS][0m File configuration loaded successfully
|
||||
[34m[INFO][0m Loading configuration from database...
|
||||
[32m[SUCCESS][0m Database configuration validated (%d entries)
|
||||
Found 27 configuration entries
|
||||
[32m[SUCCESS][0m Database configuration loaded
|
||||
[34m[INFO][0m Applying configuration to global variables...
|
||||
[32m[SUCCESS][0m Configuration applied to global variables
|
||||
[32m[SUCCESS][0m Configuration system initialized successfully
|
||||
[32m[SUCCESS][0m Relay information initialized with default values
|
||||
[34m[INFO][0m Initializing NIP-13 Proof of Work configuration
|
||||
[34m[INFO][0m PoW configured in basic validation mode
|
||||
[34m[INFO][0m PoW Configuration: enabled=true, min_difficulty=0, validation_flags=0x1, mode=full
|
||||
[34m[INFO][0m Initializing NIP-40 Expiration Timestamp configuration
|
||||
[34m[INFO][0m Expiration Configuration: enabled=true, strict_mode=true, filter_responses=true, grace_period=300 seconds
|
||||
[34m[INFO][0m Subscription limits: max_per_client=25, max_total=5000
|
||||
[34m[INFO][0m Starting relay server...
|
||||
[34m[INFO][0m Starting libwebsockets-based Nostr relay server...
|
||||
[32m[SUCCESS][0m WebSocket relay started on ws://127.0.0.1:8888
|
||||
[34m[INFO][0m HTTP request received
|
||||
[34m[INFO][0m Handling NIP-11 relay information request
|
||||
[32m[SUCCESS][0m NIP-11 relay information served successfully
|
||||
[34m[INFO][0m HTTP request received
|
||||
[34m[INFO][0m Handling NIP-11 relay information request
|
||||
[32m[SUCCESS][0m NIP-11 relay information served successfully
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[33m[WARNING][0m Event rejected: expired timestamp
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[33m[WARNING][0m Event rejected: expired timestamp
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling REQ message for persistent subscription
|
||||
[34m[INFO][0m Added subscription 'filter_test' (total: 1)
|
||||
[34m[INFO][0m Executing SQL: SELECT id, pubkey, created_at, kind, content, sig, tags FROM events WHERE 1=1 AND kind IN (1) ORDER BY created_at DESC LIMIT 10
|
||||
[34m[INFO][0m Query returned 10 rows
|
||||
[34m[INFO][0m Total events sent: 10
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Removed subscription 'filter_test' (total: 0)
|
||||
[34m[INFO][0m Closed subscription: filter_test
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[33m[WARNING][0m Subscription '<27><><15>a' not found for removal
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m WebSocket connection established
|
||||
[34m[INFO][0m Received WebSocket message
|
||||
[34m[INFO][0m Handling EVENT message with full NIP-01 validation
|
||||
[32m[SUCCESS][0m Event stored in database
|
||||
[32m[SUCCESS][0m Event validated and stored successfully
|
||||
[34m[INFO][0m WebSocket connection closed
|
||||
[34m[INFO][0m HTTP request received
|
||||
[34m[INFO][0m Handling NIP-11 relay information request
|
||||
[32m[SUCCESS][0m NIP-11 relay information served successfully
|
||||
|
||||
Reference in New Issue
Block a user