Skip to content

Commit

Permalink
README: Document IP & hostname overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-h05 committed Sep 25, 2023
1 parent f0987c1 commit 3fc84eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Just add this `location` block to a valid `server` configuration:

```
location /sip {
proxy_pass http://127.0.0.1:8090; # Adjust to your webrtc-sip-gw Docker host's IP
proxy_pass http://FILL_YOUR_IP:8090; # Adjust to your webrtc-sip-gw Docker host's IP
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down Expand Up @@ -64,6 +64,14 @@ Unless you have not explicitly disabled TLS:
- `cd` into the new directory.
- Create a `ssl` folder.

### Hostname & IP Address

By default, webrtc-sip-gw is automatically using the hostname of your Docker host and the IP address of an interface.

In case you need to use a different hostname or IP address than the automatically set, e.g. because you have multiple interfaces and webrtc-sip-gw selected the wrong one, you can overwrite the automatically set values.

Set the `MY_IP` environment variable to overwrite the IP address, and set the `MY_DOMAIN` environment variable to overwrite the hostname.

### Certificate

The certificate should be placed in the `ssl` directory and named `sipgw.crt`.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ services:
- ./ssl/sipgw.key:/etc/ssl/privkey.pem:ro # Can be left out when TLS is disabled
- ./ssl/sipgw.crt:/etc/ssl/fullchain.pem:ro # Can be left out when TLS is disabled
environment:
- TLS_DISABLE=true # Optional, defaults to false
- TLS_DISABLE=false # Optional, defaults to false

0 comments on commit 3fc84eb

Please sign in to comment.