Skip to content

Commit

Permalink
demote nginx config to subdirectory
Browse files Browse the repository at this point in the history
Summary:
since the nginx configuration is optional and purely manual
installation, put in a subdirectory with instructions in the README, so
it doesnt add to the noise when looking at the main dotfiles.

Test Plan: none required

Reviewers: alpert, marcos, ethan, csilvers

Reviewed By: csilvers

Projects: #devenvfixup

Differential Revision: https://phabricator.khanacademy.org/D18666
  • Loading branch information
Matthew Rothenberg committed Jun 18, 2015
1 parent 625e3be commit 9ec8f80
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions nginx/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
as of web 14 may 2014, this is purely optional and probably only
necessary if you are you testing ssl connections or want to use a
vhost like stable.ka.local

see http://wiki.nginx.org/HttpSslModule and copy the local.crt/key
files to the path below in ssl_certificate and ssl_certificate_key

you'll need to update /etc/hosts to have the following lines

KA local servers
127.0.0.1 exercises.ka.local
::1 exercises.ka.local
127.0.0.1 stable.ka.local
::1 stable.ka.local

on a mac, you need to update the launchd script to run nginx as root

#Copy the launch plist.
sudo cp -f /usr/local/Cellar/nginx/*/homebrew.mxcl.nginx.plist \
/Library/LaunchDaemons
# Delete the username key so it is run as root
sudo /usr/libexec/PlistBuddy -c "Delete :UserName" \
/Library/LaunchDaemons/homebrew.mxcl.nginx.plist 2>/dev/null
# Load it.
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9ec8f80

Please sign in to comment.