diff --git a/README.md b/README.md index 21ed728..7bc4d51 100644 --- a/README.md +++ b/README.md @@ -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"; @@ -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`. diff --git a/docker-compose.yml b/docker-compose.yml index ccbb09e..03860c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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