Browse Source

origin restriction by default

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
5c3a592c4d
2 changed files with 18 additions and 4 deletions
  1. +2
    -0
      kamailio/defs.cfg
  2. +16
    -4
      kamailio/local.cfg

+ 2
- 0
kamailio/defs.cfg View File

@ -11,9 +11,11 @@
#!substdef "!MY_IP_ADDRESS!$HN(i)!g" #!substdef "!MY_IP_ADDRESS!$HN(i)!g"
#!endif #!endif
#!ifndef WEBSOCKET_NO_ORIGIN_RESTRICTION
#!ifndef MY_WEBSOCKET_DOMAIN #!ifndef MY_WEBSOCKET_DOMAIN
#!substdef "!MY_WEBSOCKET_DOMAIN!$HN(d)!g" #!substdef "!MY_WEBSOCKET_DOMAIN!$HN(d)!g"
#!endif #!endif
#!endif
#!trydef KAZOO_LOG_LEVEL L_INFO #!trydef KAZOO_LOG_LEVEL L_INFO


+ 16
- 4
kamailio/local.cfg View File

@ -39,12 +39,24 @@
## in the zone that this server will service. ## in the zone that this server will service.
#!substdef "!MY_AMQP_URL!amqp://guest:guest@127.0.0.1:5672!g" #!substdef "!MY_AMQP_URL!amqp://guest:guest@127.0.0.1:5672!g"
## This parameter is only required if you are using websockets
################################################################################
## WEBSOCKETS
################################################################################
##
## These parameters are only required if you are using websockets
##
## MY_WEBSOCKET_DOMAIN
## This value must be present in the HTTP ## This value must be present in the HTTP
## Origin header on a new websocket request ## Origin header on a new websocket request
## or it will be rejected. If you remove
## it completely the validation will be disabled.
# # #!substdef "!MY_WEBSOCKET_DOMAIN!2600hz.com!g"
## or it will be rejected. default value is
## domain of this server.
## #!substdef "!MY_WEBSOCKET_DOMAIN!2600hz.com!g"
##
## WEBSOCKET_NO_ORIGIN_RESTRICTION
## if defined, it will disable the origin validation.
##
## #!trydef WEBSOCKET_NO_ORIGIN_RESTRICTION
##
################################################################################ ################################################################################
## DATABASE ## DATABASE


Loading…
Cancel
Save