Update fusionpbx

This commit is contained in:
FusionPBX 2018-07-25 00:01:41 -05:00 committed by GitHub
parent fbe8e97b4e
commit e05f1de9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -46,6 +46,15 @@ server {
server { server {
listen 80; listen 80;
server_name fusionpbx; server_name fusionpbx;
#redirect letsencrypt to dehydrated
location ^~ /.well-known/acme-challenge {
default_type "text/plain";
auth_basic "off";
alias /var/www/dehydrated;
}
#rewrite rule - send to https with an exception for provisioning
if ($uri !~* ^.*(provision|xml_cdr).*$) { if ($uri !~* ^.*(provision|xml_cdr).*$) {
rewrite ^(.*) https://$host$1 permanent; rewrite ^(.*) https://$host$1 permanent;
break; break;
@ -150,6 +159,13 @@ server {
ssl_ciphers HIGH:!ADH:!MD5:!aNULL; ssl_ciphers HIGH:!ADH:!MD5:!aNULL;
#ssl_dhparam #ssl_dhparam
#redirect letsencrypt to dehydrated
location ^~ /.well-known/acme-challenge {
default_type "text/plain";
auth_basic "off";
alias /var/www/dehydrated;
}
#REST api #REST api
if ($uri ~* ^.*/api/.*$) { if ($uri ~* ^.*/api/.*$) {
rewrite ^(.*)/api/(.*)$ $1/api/index.php?rewrite_uri=$2 last; rewrite ^(.*)/api/(.*)$ $1/api/index.php?rewrite_uri=$2 last;