Files
gitea-nostr-auth/config.example.yaml
mleku 896a7599a0 Release v0.0.1 - Initial OAuth2 server implementation
- Add Nostr OAuth2 server with NIP-98 authentication support
- Implement OAuth2 authorization and token endpoints
- Add .well-known/openid-configuration discovery endpoint
- Include Dockerfile for containerized deployment
- Add Claude Code release command for version management
- Create example configuration file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 09:37:26 +01:00

34 lines
1.1 KiB
YAML

# Nostr OAuth2 Server Configuration
server:
# Port to listen on
port: 8080
# Host to bind to (empty or 0.0.0.0 for all interfaces)
host: ""
# Public base URL (used for generating redirect URLs)
base_url: "http://localhost:8080"
oauth2:
clients:
# Gitea client configuration
- client_id: "gitea"
# Generate a secure secret: openssl rand -hex 32
client_secret: "change-me-to-a-secure-secret"
redirect_uris:
- "http://localhost:3000/user/oauth2/nostr/callback"
# Add your production Gitea URL here
# - "https://gitea.example.com/user/oauth2/nostr/callback"
nostr:
# How long a challenge is valid
challenge_ttl: 60s
# Fallback relays for fetching relay lists and profiles
# These are used when looking up NIP-65 relay lists and kind 0 profiles
# Leave empty to use defaults: relay.nostr.band, nostr.wine, nos.lol, relay.primal.net, purplepag.es
fallback_relays:
- "wss://relay.nostr.band/"
- "wss://nostr.wine/"
- "wss://nos.lol/"
- "wss://relay.primal.net/"
- "wss://purplepag.es/"