all repos — fixyoutube-go @ d2751eaa0aa1c9848e96debe36e98153fe6c50ce

A better way to embed YouTube videos everywhere (inspired by FixTweet).

README.md (view raw)

 1# FixYouTube
 2Embed YouTube videos on Telegram, Discord and more!
 3
 4## How to use:
 5Replace `www.youtube.com` or `youtu.be` with `y.outube.duckdns.org` to fix embeds for short videos.
 6
 7https://github.com/BiRabittoh/FixYouTube/assets/26506860/e1ad5397-41c8-4073-9b3e-598c66241255
 8
 9## Instructions
10
11First of all, you should set the API key to whatever you want:
12```
13cp .env.example .env
14nano .env
15```
16
17### Docker with reverse proxy
18Copy the template config file and make your adjustments. My configuration is based on [DuckDNS](http://duckdns.org/) but you can use whatever provider you find [here](https://docs.linuxserver.io/general/swag#docker-compose).
19
20```
21cp docker/swag.env.example docker/swag.env
22nano docker/swag.env
23```
24
25Finally: `docker-compose up -d`.
26
27### Docker without reverse proxy
28Just run:
29```
30docker-compose -f docker-compose.simple.yaml up -d
31```
32
33## Test and debug locally
34```
35go test -v ./...
36go run .
37```