forked from divad12/khan-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
4 changed files
with
25 additions
and
0 deletions.
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,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.