https://github.com/vrerv/local-https
NGINX local https configuration template
https://github.com/vrerv/local-https
Last synced: 11 months ago
JSON representation
NGINX local https configuration template
- Host: GitHub
- URL: https://github.com/vrerv/local-https
- Owner: vrerv
- Created: 2023-07-01T06:41:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T11:45:39.000Z (almost 3 years ago)
- Last Synced: 2025-05-18T13:49:25.709Z (about 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local Https Demo
## Description
* https://www.vrerv.com/blog/self-signed-cert-in-local-https-site-development/
## Usage
Only works in bash shell. you need python3 and docker installed.
* clone submodule (ssl_cert_generator) by `git submodule update --init --recursive`
* modify `setup.sh` to change the domain name and service port.
* run `setup.sh` to generate certificates and configure nginx virtual host
* add generated `/root/rootCA.pem` to your OS's trusted root CA store - check the link above for details
* run `run-test-server.sh 3001` to run demo web server using python http.server
* run `run-docker-nginx.sh` to run nginx docker container