Bang/README.md

46 lines
1.9 KiB
Markdown
Raw Normal View History

2025-02-28 12:05:47 -06:00
# 💣Bang
2025-02-27 11:21:38 -06:00
*This is a fork of [unduck](https://unduck.link) by [Theo](https://github.com/t3dotgg/unduck).*
2025-02-14 22:59:27 -08:00
2025-02-28 11:57:34 -06:00
## Why fork?
2025-02-28 12:04:52 -06:00
This fork allows anyone to easily self host this service & add bangs for their own self-hosted websites. Bang comes pre-configured to work with
2025-02-28 11:57:34 -06:00
2025-02-28 12:04:52 -06:00
- Searxng *!s*
- Gitea *!tea*
- OpenWebUI *!ai*
2025-02-28 12:59:09 -06:00
- Nextcloud App Store *!cloudapp*
- Plex *!plex*
- Overseerr *!ov*
- Sonarr *!tv*
- Radarr *!mv*
- Lidarr *!mp3*
2025-02-28 12:04:52 -06:00
*Note: We have replaced some of the default bangs from duckduckgo with our own bangs in order to have more simple bangs for the self-hosted websites.*
2025-02-28 11:57:34 -06:00
You can also easily add your own bangs by adding a new entry in the bangs.ts file.
2025-02-14 22:59:27 -08:00
DuckDuckGo's bang redirects are too slow. Add the following URL as a custom search engine to your browser. Enables all of DuckDuckGo's bangs to work, but much faster.
```
2025-02-27 11:21:38 -06:00
https://bang.gbrown.org?q=%s
2025-02-14 22:59:27 -08:00
```
## How is it that much faster?
DuckDuckGo does their redirects server side. Their DNS is...not always great. Result is that it often takes ages.
2025-02-27 11:21:38 -06:00
Theo solved this by doing all of the work client side. Once you've went to https://unduck.link once, the JS is all cache'd and will never need to be downloaded again. Your device does the redirects, not me.
2025-02-28 11:57:34 -06:00
### How to self host
1. Clone the repo & fill out the .env.example files in the root directory & the docker directory & rename them to .env.
- *Note: Our docker compose assumes you plan to select an external network.*
2. Run the bash script `host-bang` in the docker directory with the root directory of the project as an argument.
- *Note: You can also simply run it from the root or docker directory without an argument.*
2025-02-28 11:57:34 -06:00
### How to update the website
1. Run the bash script `update-bang` in the docker directory with the root directory of the project as an argument.
- *Note: You can also simply run it from the root or docker directory without an argument.*