Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softinstigate/nginx-restheart
Example of NGINX as a SSL frontend for RESTHeart.
https://github.com/softinstigate/nginx-restheart
docker docker-compose http https https-proxy nginx restheart ssl ssl-frontend
Last synced: about 1 month ago
JSON representation
Example of NGINX as a SSL frontend for RESTHeart.
- Host: GitHub
- URL: https://github.com/softinstigate/nginx-restheart
- Owner: SoftInstigate
- Created: 2019-07-16T14:45:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-03T16:04:50.000Z (over 2 years ago)
- Last Synced: 2024-11-06T12:54:14.232Z (3 months ago)
- Topics: docker, docker-compose, http, https, https-proxy, nginx, restheart, ssl, ssl-frontend
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTHeart and NGINX with SSL
This repository shows an example of NGINX as a SSL frontend for [RESTHeart](https://github.com/SoftInstigate/restheart/).
It uses Docker images to setup a complete stack made with NGINX, RESTHeart and MongoDB.
NGINX acts as a HTTPS reverse proxy for RESTHeart and it uses a self-signed certificate for the SSL connection.
To create the stack:
```bash
docker-compose up
```To test that it works with `curl`:
```bash
curl --insecure https://localhost/pingGreetings from RESTHeart!
```The `--insecure` parameter is necessary because we are using a self-signed certificate.
To test that it works with `http`:
```bash
http --verify=no https://localhost/ping
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ETag, Auth-Token, Auth-Token-Valid-Until, Auth-Token-Location, X-Powered-By
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 45
Content-Type: text/plain
Date: Tue, 22 Jun 2021 09:06:02 GMT
Server: nginx/1.21.0
X-Powered-By: restheart.orgGreetings from RESTHeart!
```To stop:
```bash
docker-compose stop
```To clean-up:
```bash
docker-compose down
```