Created
December 13, 2017 22:18
-
-
Save gswallow/e07a08796094ac23cc888b39588b4587 to your computer and use it in GitHub Desktop.
quick & dirty nginx package
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
#!/bin/sh | |
yes | sudo pkg install gcc-6 autotools wget gmake pcre openssl | |
sudo portsnap fetch | |
sudo portsnap extract | |
cd /usr/ports/www/nginx | |
sudo OPTIONS_DEFAULT='DSO FILE_AIO HTTP HTTP_ADDITION HTTP_AUTH_REQ HTTP_CACHE HTTP_GZIP_STATIC HTTP_REALIP HTTP_REWRITE HTTP_SSL HTTP_STATUS THREADS HTTP_UPSTREAM_CHECK HTTP_UPSTREAM_FAIR HTTP_UPSTREAM_STICKY NAXSI' make config && sudo make && sudo make package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment