Skip to content

Commit

Permalink
add nginx conf and update helper shell
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Nov 11, 2012
1 parent e0fbfec commit dd558ad
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
81 changes: 81 additions & 0 deletions bbb_django/bigbluebutton.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
server {
listen 80;
#server_name www.yourhost.com;

access_log /var/log/nginx/bigbluebutton.access.log;

# Handle RTMPT (RTMP Tunneling). Forwards requests
# to Red5 on port 5080
location ~ (/open/|/close/|/idle/|/send/) {
proxy_pass http://127.0.0.1:5080;
proxy_redirect off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffering off;
}

# Handle desktop sharing tunneling. Forwards
# requests to Red5 on port 5080.
location /deskshare {
proxy_pass http://127.0.0.1:5080;
proxy_redirect default;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
include fastcgi_params;
}


# BigBlueButton landing page.
#location /bbbdemo {
# alias /var/www/bigbluebutton-default;
# index index.html index.htm;
# expires 1m;
#}


location / {
# host and port to fastcgi server
fastcgi_pass 127.0.0.1:9090;
#rewrite "^/bbb_demo/(.*)" / break;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
#fastcgi_param SCRIPT_NAME /bbb_demo;
#fastcgi_param PATH_INFO /login;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}

# Include specific rules for record and playback
include /etc/bigbluebutton/nginx/*.nginx;

#error_page 404 /404.html;

# Redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/nginx-default;
}
}

4 changes: 4 additions & 0 deletions bbb_django/initial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
`which python` manage.py syncdb
`which python` manage.py schemamigration bbb --initial
echo 'Please update the "SALT" and "BBB_API_URL" in "bbb/local_settings.py"'
2 changes: 1 addition & 1 deletion bbb_django/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

sudo kill -9 `cat /var/run/django.pid`
sudo /home/jeromy/dev/bbb_python/env/bin/python manage.py runfcgi host=127.0.0.1 port=9090 pidfile=/var/run/django.pid minspare=1 maxspare=2
sudo `which python` manage.py runfcgi host=127.0.0.1 port=9090 pidfile=/var/run/django.pid minspare=1 maxspare=2

0 comments on commit dd558ad

Please sign in to comment.