Skip to content

Commit

Permalink
Merge branch 'v0.70' of https://github.com/dOpensource/dsiprouter int…
Browse files Browse the repository at this point in the history
…o v0.70
  • Loading branch information
mackhendricks committed Oct 11, 2022
2 parents 84bd75c + 4452960 commit eeb5386
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion kamailio/almalinux/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/amzn/2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/centos/7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
cp ${DSIP_PROJECT_DIR}/kamailio/ca-list.pem ${DSIP_SSL_CA}

# Setup dSIPRouter Module
Expand Down
2 changes: 1 addition & 1 deletion kamailio/centos/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
cp ${DSIP_PROJECT_DIR}/kamailio/ca-list.pem ${DSIP_SSL_CA}

# Setup dSIPRouter Module
Expand Down
2 changes: 1 addition & 1 deletion kamailio/configs/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ stir_shaken.stir_shaken_prefix_b = "" # Default Empty
stir_shaken.stir_shaken_prefix_c = "" # Default Empty
stir_shaken.stir_shaken_prefix_invalid = "" # Default Empty
stir_shaken.stir_shaken_block_invalid = 0 # Default Disabled
stir_shaken.stir_shaken_key_path = "/etc/dsiprouter/certs/stirshaken-key.pem" # Default
stir_shaken.stir_shaken_key_path = "/etc/dsiprouter/certs/stirshaken/stirshaken-key.pem" # Default
stir_shaken.stir_shaken_cert_url = " https://cr.example.com/xK/order/xk" # Default

# MSTeams Settings
Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/debian/9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/rhel/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/rocky/8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-bundle.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/ubuntu/20.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
2 changes: 1 addition & 1 deletion kamailio/ubuntu/22.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ EOF
cp -f ${DSIP_PROJECT_DIR}/resources/logrotate/kamailio /etc/logrotate.d/kamailio

# Setup Kamailio to use the CA cert's that are shipped with the OS
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR}/certs/stirshaken
ln -s /etc/ssl/certs/ca-certificates.crt ${DSIP_SSL_CA}
updateCACertsDir

Expand Down
5 changes: 5 additions & 0 deletions nginx/configs/dsiprouter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ server {
proxy_set_header X-Forwarded-Port $server_port;
}

location /stirshaken_certs {
alias /etc/dsiprouter/certs/stirshaken;
}


# redirect http to https
error_page 497 https://$host:DSIP_PORT$request_uri;
}
2 changes: 1 addition & 1 deletion resources/terraform/do/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "digitalocean_droplet" "dsiprouter" {

provisioner "remote-exec" {
inline = [
"apt-get update -y && apt-get install -y git && cd /opt && git clone https://github.com/dOpensource/dsiprouter.git -b ${var.branch} && cd dsiprouter && ./dsiprouter.sh install -all && ${var.additional_commands}"
"apt-get update -y && sleep 30 && apt-get install -y git && cd /opt && git clone https://github.com/dOpensource/dsiprouter.git -b ${var.branch} && cd dsiprouter && ./dsiprouter.sh install -all && ${var.additional_commands}"
]
}
}

0 comments on commit eeb5386

Please sign in to comment.