Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devsisters/docker-nginx-sslproxy
Dockerized nginx proxy w/ SSL suppport
https://github.com/devsisters/docker-nginx-sslproxy
Last synced: about 2 months ago
JSON representation
Dockerized nginx proxy w/ SSL suppport
- Host: GitHub
- URL: https://github.com/devsisters/docker-nginx-sslproxy
- Owner: devsisters
- Created: 2014-11-17T09:37:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T05:29:57.000Z (almost 9 years ago)
- Last Synced: 2024-03-17T02:42:06.804Z (10 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 50
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-nginx-sslproxy
=====================Dockerized nginx proxy w/ SSL suppport
## How to use
First, you have to write environment file.
Here are all list of env vars* `SSL_CERT_B64`: Base64 encoded SSL cert (.crt or .pem) file. Use `cat | base64` command to get this string.
* `SSL_KEY_B64`: Base64 encoded SSL key (.key) file. Use `cat | base64` command to get this string.
* `BACKEND_SERVICE_HOST`: Host ip(or domain) of backend service.
* `BACKEND_SERVICE_PORT`: Port of backend service.You can give `SERVICE_NAME` instead of `BACKEND_SERVICE_HOST` and `BACKEND_SERVICE_PORT`. This is useful if you want to run this image in a [Kubernetes](https://github.com/googlecloudplatform/kubernetes) cluster.
After that, you can run it by docker.
```
$ git clone https://github.com/devsisters/docker-nginx-sslproxy.git
$ cd docker-nginx-sslproxy
$ docker build -t sslproxy .
$ docker run --env-file --publish=443:443 -d sslproxy
```