Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chtozamm/go-containerized-app

A containerized Go application composed with Redis and Nginx
https://github.com/chtozamm/go-containerized-app

docker docker-compose go nginx redis ssl

Last synced: about 1 month ago
JSON representation

A containerized Go application composed with Redis and Nginx

Awesome Lists containing this project

README

        

## Prerequisite

Generate self-signed certificate:

```sh
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-selfsigned.key -out nginx-selfsigned.crt
```

- `req`: command to create and process certificate requests
- `-x509`: specifies that you want to create a self-signed certificate instead of a certificate request
- `-nodes`: tells to not encrypt the private key for server application to read the key without a passphrase
- `-days 365`: sets the validity of the certificate to 365 days
- `-newkey rsa:2048`: generates a new RSA key of 2048 bits
- `-keyout nginx-selfsigned.key`: specifies the filename for the private key
- `-out nginx-selfsigned.crt`: specifies the filename for the self-signed certificate