52 lines
1.0 KiB
Markdown
52 lines
1.0 KiB
Markdown
# hottub
|
|
|
|
Rust based hottub server
|
|
|
|
the following URL:
|
|
|
|
[hottub.spacemoehre.de](hottub://source?url=hottub.spacemoehre.de)
|
|
|
|
## build it yourself
|
|
|
|
Get, Build and Host the docker image:
|
|
|
|
```
|
|
git clone https://gitea.spacemoehre.de/simon/hottub
|
|
sudo docker build hottub
|
|
cd hottub && cargo build --release
|
|
nano docker-compose.yml # adjust compose file
|
|
sudo docker compose up -d
|
|
```
|
|
|
|
Verify setup, replace the url with your setup url
|
|
|
|
```
|
|
curl -v http://127.0.0.1
|
|
```
|
|
|
|
->
|
|
|
|
```
|
|
* Trying 127.0.0.1:80...
|
|
* Connected to 127.0.0.1 (127.0.0.1) port 80
|
|
> GET / HTTP/1.1
|
|
> Host: 127.0.0.1:80
|
|
> User-Agent: curl/8.5.0
|
|
> Accept: */*
|
|
>
|
|
< HTTP/1.1 302 Found
|
|
< content-length: 0
|
|
< location: hottub://source?url=127.0.0.1:80
|
|
< date: Mon, 29 Sep 2025 14:58:15 GMT
|
|
<
|
|
* Connection #0 to host 127.0.0.1 left intact
|
|
```
|
|
|
|
make sure that you get a code 302 to a `hottub://` url
|
|
|
|
## Update via git pull
|
|
|
|
To Update (i.e. for new supported sites) do
|
|
```
|
|
cd /path/to/hottub && git pull && cargo build --release && sudo docker container restart hottub
|
|
``` |