Skip to content

Commit

Permalink
add guide for run https in development
Browse files Browse the repository at this point in the history
  • Loading branch information
dori-dev committed Apr 14, 2023
1 parent a87f334 commit 1ae34b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ db.sqlite3
*/media/users/
*/media/images/
*/media/profile.png.*
Todo.md
cert.crt
cert.key
.env
posts.json
users.json
add_fake_data.py
.vscode
cache/
db/
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ docker-compose up -d

Main Page: [localhost](http:https://localhost:80/)<br>

## HTTPS in Development

```
sudo chown $USER /etc/hosts
echo '127.0.0.1 mysite.com' >> /etc/hosts
```

<br>
Run server with https.

```
python manage.py runserver_plus --cert-file cert.crt
```

#

## Links
Expand Down

0 comments on commit 1ae34b1

Please sign in to comment.