forked from schallis/django-bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nginx conf and update helper shell
- Loading branch information
Showing
3 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |