Coder Social home page Coder Social logo

jrk / simple-nginx-reverse-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scottwb/simple-nginx-reverse-proxy

0.0 3.0 0.0 105 KB

Simple install, config, start/stop setup for nginx to proxy port 80/443 to port 3000.

Ruby 77.78% Shell 22.22%

simple-nginx-reverse-proxy's Introduction

Description

This is a simple nginx configuration setup that does nothing more than run nginx listening for HTTP on port 80 and HTTPS on port 443, and proxy all requests to localhost port 3000.

It is not setup to serve static files via nginx, perform any caching, etc. It is really meant as a quick and easy way to let you run whatever local server process you want on localhost:3000 and be able to hit it at http://localhost and https://localhost.

This has really only been tested on Max OS X 10.6 (Snow Leopard).

Installation

git clone git://github.com/scottwb/simple-nginx-reverse-proxy.git
cd simple-nginx-reverse-proxy
rake nginx:install

This nginx:install task is Mac OS X-specific. It checks to see if nginx is installed via MacPorts, and if it is not, then it installs it via MacPorts. This will ask you for the sudo password.

It will also create a self-signed PEM certificate for SSL and prompt you to enter the certificate information. This information is not really important. Enter whatever you like.

Operation

From inside the simple-nginx-reverse-proxy directory, you can run the following commands:

rake nginx:start    # Starts nginx.
rake nginx:stop     # Stops nginx.
rake nginx -T       # Shows all available tasks.

The nginx:start and nginx:stop tasks run as sudo and will prompt for the sudo password.

License

Scripts and config files created by Scott W. Bradley (scottwb). Do whatever you want with it.

simple-nginx-reverse-proxy's People

Contributors

scottwb avatar jrk avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.