bridge-local-dev/nginx
Martin Donnelly 78a95206a3 init
2018-06-24 21:13:31 +01:00
..
conf init 2018-06-24 21:13:31 +01:00
logs init 2018-06-24 21:13:31 +01:00
make-ssl-keys.bat init 2018-06-24 21:13:31 +01:00
make-ssl-keys.sh init 2018-06-24 21:13:31 +01:00
README.md init 2018-06-24 21:13:31 +01:00
reload-nginx.bat init 2018-06-24 21:13:31 +01:00
reload-nginx.sh init 2018-06-24 21:13:31 +01:00
start-nginx.bat init 2018-06-24 21:13:31 +01:00
start-nginx.sh init 2018-06-24 21:13:31 +01:00
stop-nginx.bat init 2018-06-24 21:13:31 +01:00
stop-nginx.sh init 2018-06-24 21:13:31 +01:00

This uses Nginx as the SSL offload / proxy for your local debug server.

The nginx server will server https://localhost and will proxy that straight through to http://localhost (where your development server should be running).

Pre-requisites

  1. Download nginx from http://nginx.org/en/download.html

  2. Unzip to /nginx directory below this one. NOTE: the downloaded zip files like have a nested folder with the version number, e.g. nginx-1.11.9. You MUST rename and move folders such that you end up with nginx/nginx.exe being a valid exe.

  3. Run "make-ssl-keys.bat" to create self-signed keys. WARNING: You will be asked questions. The important one is "Common Name" Set this to "localhost" or the IP address that you expect to connect to your local dev server on.

To Start nginx

  1. Run "start-nginx.exe"
  2. Look in the process list and see if nginx.exe is running.

If not, try just running nginx\nginx.exe from the command line to view any errors.

WARNING: you cannot stop nginx using Ctrl+C. See below for how to stop it.

To Stop nginx

  1. Run "stop-nginx.exe"

Alternatively, kill the nginx processes using task manager