config.example.yaml raw

   1  # Nostr OAuth2 Server Configuration
   2  
   3  server:
   4    # Port to listen on
   5    port: 8080
   6    # Host to bind to (empty or 0.0.0.0 for all interfaces)
   7    host: ""
   8    # Public base URL (used for generating redirect URLs)
   9    base_url: "http://localhost:8080"
  10  
  11  oauth2:
  12    clients:
  13      # Gitea client configuration
  14      - client_id: "gitea"
  15        # Generate a secure secret: openssl rand -hex 32
  16        client_secret: "change-me-to-a-secure-secret"
  17        redirect_uris:
  18          - "http://localhost:3000/user/oauth2/nostr/callback"
  19          # Add your production Gitea URL here
  20          # - "https://gitea.example.com/user/oauth2/nostr/callback"
  21  
  22  nostr:
  23    # How long a challenge is valid
  24    challenge_ttl: 60s
  25    # Fallback relays for fetching relay lists and profiles
  26    # These are used when looking up NIP-65 relay lists and kind 0 profiles
  27    # Leave empty to use defaults: relay.nostr.band, nostr.wine, nos.lol, relay.primal.net, purplepag.es
  28    fallback_relays:
  29      - "wss://relay.nostr.band/"
  30      - "wss://nostr.wine/"
  31      - "wss://nos.lol/"
  32      - "wss://relay.primal.net/"
  33      - "wss://purplepag.es/"
  34