Guest User

application.yml

a guest
Oct 17th, 2025
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.25 KB | None | 0 0
  1. plugins:
  2.   lavasrc:
  3.     providers:
  4.      - "ytsearch:\"%ISRC%\""
  5.       - "ytsearch:%QUERY%"
  6.     sources:
  7.       spotify: true
  8.       applemusic: false
  9.       deezer: false
  10.       yandexmusic: false
  11.       youtube: false
  12.     spotify:
  13.       clientId: "id"
  14.       clientSecret: "secret"
  15.       countryCode: "CZ" # the country code you want to use for filtering the artists top tracks. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
  16.       playlistLoadLimit: 20 # The number of pages at 100 tracks each
  17.       albumLoadLimit: 6 # The number of pages at 50 tracks each
  18.   youtube:
  19.     remoteCipher:
  20.         url: http://localhost:8001/
  21.         password: test
  22.     enabled: true
  23.     oauth:
  24.         enabled: true
  25.         skipInitialization: false
  26.         refreshToken: "1//token"
  27.     #pot:
  28.       #token: "old_pot_token"
  29.       #visitorData: "string"
  30.     allowSearch: true
  31.     allowDirectVideoIds: true
  32.     allowDirectPlaylistIds: true
  33.     clients:
  34.      - TV
  35.       - TVHTML5EMBEDDED
  36.       - WEB
  37.       - ANDROID_MUSIC
  38.       - IOS
  39.       #- MUSIC
  40.       #- ANDROID_VR
  41.       #- WEBEMBEDDED
  42.  
  43. server: # REST and WS server
  44.   port: 2333
  45.   address: 0.0.0.0
  46.   http2:
  47.     enabled: false
  48. lavalink:
  49.   plugins:
  50.     - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.3.0"
  51.       repository: "https://maven.lavalink.dev/releases"
  52.       snapshot: false
  53.     - dependency: "com.github.topi314.lavasearch:lavasearch-plugin:1.0.0"
  54.       repository: "https://maven.lavalink.dev/releases"
  55.       snapshot: false
  56.     - dependency: "dev.lavalink.youtube:youtube-plugin:1.15.0"
  57.       snapshot: false
  58.   server:
  59.     password: "youshallnotpass"
  60.     sources:
  61.      # The default Youtube source is now deprecated and won't receive further updates. Please use https://github.com/lavalink-devs/youtube-source#plugin instead.
  62.       youtube: false
  63.       bandcamp: true
  64.       soundcloud: true
  65.       twitch: true
  66.       vimeo: true
  67.       nico: true
  68.       http: true # warning: keeping HTTP enabled without a proxy configured could expose your server's IP address.
  69.       local: false
  70.     filters: # All filters are enabled by default
  71.       volume: true
  72.       equalizer: true
  73.       karaoke: true
  74.       timescale: true
  75.       tremolo: true
  76.       vibrato: true
  77.       distortion: true
  78.       rotation: true
  79.       channelMix: true
  80.       lowPass: true
  81.     nonAllocatingFrameBuffer: false # Setting to true reduces the number of allocations made by each player at the expense of frame rebuilding (e.g. non-instantaneous volume changes)
  82.     bufferDurationMs: 400 # The duration of the NAS buffer. Higher values fare better against longer GC pauses. Duration <= 0 to disable JDA-NAS. Minimum of 40ms, lower values may introduce pauses.
  83.     frameBufferDurationMs: 5000 # How many milliseconds of audio to keep buffered
  84.     opusEncodingQuality: 10 # Opus encoder quality. Valid values range from 0 to 10, where 10 is best quality but is the most expensive on the CPU.
  85.     resamplingQuality: LOW # Quality of resampling operations. Valid values are LOW, MEDIUM and HIGH, where HIGH uses the most CPU.
  86.     trackStuckThresholdMs: 10000 # The threshold for how long a track can be stuck. A track is stuck if does not return any audio data.
  87.     useSeekGhosting: true # Seek ghosting is the effect where whilst a seek is in progress, the audio buffer is read from until empty, or until seek is ready.
  88.     youtubePlaylistLoadLimit: 6 # Number of pages at 100 each
  89.     playerUpdateInterval: 5 # How frequently to send player updates to clients, in seconds
  90.     youtubeSearchEnabled: true
  91.     soundcloudSearchEnabled: true
  92.     gc-warnings: true
  93.     #ratelimit:
  94.       #ipBlocks: ["1.0.0.0/8", "..."] # list of ip blocks
  95.       #excludedIps: ["...", "..."] # ips which should be explicit excluded from usage by lavalink
  96.       #strategy: "RotateOnBan" # RotateOnBan | LoadBalance | NanoSwitch | RotatingNanoSwitch
  97.       #searchTriggersFail: true # Whether a search 429 should trigger marking the ip as failing
  98.       #retryLimit: -1 # -1 = use default lavaplayer value | 0 = infinity | >0 = retry will happen this numbers times
  99.     #youtubeConfig: # Required for avoiding all age restrictions by YouTube, some restricted videos still can be played without.
  100.       #email: "" # Email of Google account
  101.       #password: "" # Password of Google account
  102.     #httpConfig: # Useful for blocking bad-actors from ip-grabbing your music node and attacking it, this way only the http proxy will be attacked
  103.       #proxyHost: "localhost" # Hostname of the proxy, (ip or domain)
  104.       #proxyPort: 3128 # Proxy port, 3128 is the default for squidProxy
  105.       #proxyUser: "" # Optional user for basic authentication fields, leave blank if you don't use basic auth
  106.       #proxyPassword: "" # Password for basic authentication
  107.  
  108. metrics:
  109.   prometheus:
  110.     enabled: false
  111.     endpoint: /metrics
  112.  
  113. sentry:
  114.   dsn: ""
  115.   environment: ""
  116. #  tags:
  117. #    some_key: some_value
  118. #    another_key: another_value
  119.  
  120. logging:
  121.   file:
  122.     path: ./logs/
  123.  
  124.   level:
  125.     root: INFO
  126.     lavalink: INFO
  127.  
  128.   request:
  129.     enabled: true
  130.     includeClientInfo: true
  131.     includeHeaders: false
  132.     includeQueryString: true
  133.     includePayload: true
  134.     maxPayloadLength: 10000
  135.  
  136.  
  137.   logback:
  138.     rollingpolicy:
  139.       max-file-size: 512MB
  140.       max-history: 30
  141.  
Advertisement
Add Comment
Please, Sign In to add comment