Use a reverse proxy
If you want to host Whishper on your own domain, you can use a reverse proxy such as Nginx or Caddy. This will allow you to use your own domain, and also to use HTTPS.
You need to configure a generic location and a websocket location. The generic location will be used for the UI, and the websocket location will be used for the transcription websocket.
Nginx
To use Nginx as a reverse proxy, you need to create a new server block, and add the following configuration:
server {
listen 80;
server_name whishper.example.com;
location / {
proxy_pass http://localhost:8082;
}
}
Caddy
To use Caddy as a reverse proxy, you need to create a new server block, and add the following configuration:
whishper.example.com {
reverse_proxy localhost:8082
}
Caddy Docker Proxy
If you use Caddy Docker Proxy, you can add the following configuration to your current docker-compose.yml
file:
version: "3.9"
services:
[...]
whishper:
[...]
networks:
- caddy_proxy
- default
labels:
caddy: whishper.example.com
caddy.reverse_proxy: "{{upstreams 80}}"