36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
|
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
|