-
Notifications
You must be signed in to change notification settings - Fork 51
Installing nginx on OS X
Michael B. Klein edited this page Oct 14, 2016
·
6 revisions
To install nginx for OS X:
- Install the homebrew package manager if needed.
- If homebrew was previously installed:
- Update homebrew:
brew update
- Uninstall any old stale versions of nginx:
brew uninstall nginx
- Tap the home brew nginx repository:
brew tap nginx
- Install nginx and associated modules:
brew install nginx-full --with-vod-module --with-rtmp-module --with-auth-reqmodule --with-http_sub_module
- Once this complete the console will print information about your install. Review the location of the .conf file and the commands to start and stop nginx. For streaming you'll need to start nginx in addition to the rails app for dev testing.
- Copy the example conf to your local nginx.conf
- Change out the /PATH/TO/STREAMFILES/ entries to your steamfile
- Change
AVALON_BASE_URL
to your local host URL (probably 127.0.0.1:3000) - Change ports if needed
- Update your
avalon.yml
to point to the ports set in yournginx.conf
- Start nginx:
nginx