|
96 | 96 | requests. |
97 | 97 | </para> |
98 | 98 | <para> |
99 | | - <emphasis>The default value is "*" </emphasis> (bind to all IPv6 and IPv4 interfaces). |
| 99 | + <emphasis>The default value is "127.0.0.1" </emphasis> (binds to loopback only). |
| 100 | + Use "*" to bind to all IPv6 and IPv4 interfaces. |
100 | 101 | </para> |
101 | 102 | <example> |
102 | 103 | <title>Set <varname>ip</varname> parameter</title> |
@@ -271,6 +272,71 @@ modparam("httpd", "tls_key_file", "/etc/opensips/tls/server.key") |
271 | 272 | ... |
272 | 273 | modparam("httpd", "tls_ciphers", "SECURE256:+SECURE192:-VERS-ALL:+VERS-TLS1.2") |
273 | 274 | ... |
| 275 | +</programlisting> |
| 276 | + </example> |
| 277 | + </section> |
| 278 | + <section id="param_auth_realm" xreflabel="auth_realm"> |
| 279 | + <title><varname>auth_realm</varname> (string)</title> |
| 280 | + <para> |
| 281 | + The realm string to be used for HTTP Basic Authentication |
| 282 | + challenges. Only takes effect when both |
| 283 | + <varname>auth_username</varname> and |
| 284 | + <varname>auth_password</varname> are set. |
| 285 | + </para> |
| 286 | + <para> |
| 287 | + <emphasis> The default value is "OpenSIPS MI".</emphasis> |
| 288 | + </para> |
| 289 | + <example> |
| 290 | + <title>Set <varname>auth_realm</varname> parameter</title> |
| 291 | + <programlisting format="linespecific"> |
| 292 | +... |
| 293 | +modparam("httpd", "auth_realm", "OpenSIPS Management") |
| 294 | +... |
| 295 | +</programlisting> |
| 296 | + </example> |
| 297 | + </section> |
| 298 | + <section id="param_auth_username" xreflabel="auth_username"> |
| 299 | + <title><varname>auth_username</varname> (string)</title> |
| 300 | + <para> |
| 301 | + The username for HTTP Basic Authentication. When set together |
| 302 | + with <varname>auth_password</varname>, all HTTP requests must |
| 303 | + present valid credentials. Requests without credentials or |
| 304 | + with incorrect credentials receive a 401 Unauthorized response. |
| 305 | + </para> |
| 306 | + <para> |
| 307 | + <emphasis> The default value is "" (authentication disabled).</emphasis> |
| 308 | + </para> |
| 309 | + <example> |
| 310 | + <title>Set <varname>auth_username</varname> parameter</title> |
| 311 | + <programlisting format="linespecific"> |
| 312 | +... |
| 313 | +modparam("httpd", "auth_username", "admin") |
| 314 | +... |
| 315 | +</programlisting> |
| 316 | + </example> |
| 317 | + </section> |
| 318 | + <section id="param_auth_password" xreflabel="auth_password"> |
| 319 | + <title><varname>auth_password</varname> (string)</title> |
| 320 | + <para> |
| 321 | + The password for HTTP Basic Authentication. Must be set |
| 322 | + together with <varname>auth_username</varname>. |
| 323 | + </para> |
| 324 | + <warning><para> |
| 325 | + When using HTTP Basic Authentication, it is strongly |
| 326 | + recommended to also enable TLS via |
| 327 | + <varname>tls_cert_file</varname> and |
| 328 | + <varname>tls_key_file</varname> to prevent credentials |
| 329 | + from being transmitted in plaintext. |
| 330 | + </para></warning> |
| 331 | + <para> |
| 332 | + <emphasis> The default value is "" (authentication disabled).</emphasis> |
| 333 | + </para> |
| 334 | + <example> |
| 335 | + <title>Set <varname>auth_password</varname> parameter</title> |
| 336 | + <programlisting format="linespecific"> |
| 337 | +... |
| 338 | +modparam("httpd", "auth_password", "secretpass") |
| 339 | +... |
274 | 340 | </programlisting> |
275 | 341 | </example> |
276 | 342 | </section> |
|
0 commit comments