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 duplicate and fill your `.env` file:
12```
13cp .env.example .env
14nano .env
15```
16
17### Docker without reverse proxy
18Just run:
19```
20docker compose -f compose.simple.yaml up -d
21```
22
23### Docker with reverse proxy
24Copy 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).
25
26```
27cd swag
28cp swag.env.example swag.env
29nano swag.env
30cd ..
31```
32
33Finally: `docker compose up -d`.
34
35## Test and debug locally
36```
37go test -v ./...
38go run .
39```