Skip to content

Installing nginx on OS X

Michael B. Klein edited this page Oct 14, 2016 · 6 revisions

To install nginx for OS X:

  1. Install the homebrew package manager if needed.
  2. If homebrew was previously installed:
  3. Update homebrew: brew update
  4. Uninstall any old stale versions of nginx: brew uninstall nginx
  5. Tap the home brew nginx repository: brew tap nginx
  6. Install nginx and associated modules: brew install nginx-full --with-vod-module --with-rtmp-module --with-auth-reqmodule --with-http_sub_module
  7. 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.
  8. Copy the example conf to your local nginx.conf
  9. Change out the /PATH/TO/STREAMFILES/ entries to your steamfile
  10. Change AVALON_BASE_URL to your local host URL (probably 127.0.0.1:3000)
  11. Change ports if needed
  12. Update your avalon.yml to point to the ports set in your nginx.conf
  13. Start nginx: nginx