Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jan 26, 2020
1 parent 2fe8295 commit 9f25ca4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dev:
FLASK_APP=dev.py bin/flask run -p 8000

prod:
bin/gunicorn -c gunicorn_config.py wsgi:app
bin/gunicorn -c gunicorn_config.py production:app

deploy_lambda:
pipenv run pip install --target ./lambda_function/package -r lambda_function/requirements.txt
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,28 @@ If you need to run the server with ssl cert, add these rows:
certfile = "/path/to/ssl/certfile.pem"
keyfile = "path/to/ssl/privkey.pem"
```

## certbot

install certbot:

> apt-get install certbot

or on mac:

> brew install certbot

Make sure that you open ports on your router for letsencrypt connections:

- local port: 4080 - public port: 80
- local port: 4443 - public port: 443

Then you can generate a new certificate and chain file:

> certbot certonly --standalone -d your_domain --http-01-port 4080 --tls-sni-01-port 4443

To renew cert, run:

> certbot renew

or re-generate certificates

0 comments on commit 9f25ca4

Please sign in to comment.