Extra configuration
The code for configuration can be found on internal/config/config.go
This page assumes you have basic TOML knowledge
Proxy
ArchiveTube supports HTTP, HTTPS and SOCKS proxy
[archive]
proxy = "protocol://username:password@ip:port"
Reverse proxy
If you expose your ArchiveTube instance, you may want to put it behind a reverse proxy.
[server]
real_ip_header = "header"
| Service | Header |
|---|---|
| Nginx | X-Forwarded-For |
| Cloudflare | CF-Connecting-IP |
| Popular | X-Real-IP |
CORS
If you want to use your archived videos on another site without making your data accessible to everyone, you can setup CORS. Default is set to *
[server]
cors_host = "https://yt.mathiasd.fr"
yt-dlp path
You can change the yt-dlp by adding a ytdlp_path argument to the archive section
[archive]
ytdlp_path = "/usr/local/bin/yt-dlp"
Note: this can be used to add custom arguments to yt-dlp by making a middleman bash script. This hasn’t been tested though, custom argument support will be added one day
yt-dlp --quiet "$@"
Here, --quiet is added to all yt-dlp commands