attempted enabling HTTPS dev server

This commit is contained in:
CDaut 2022-06-27 23:33:46 +02:00 committed by CDaut
parent e52cfa83f5
commit 7f608e9663
4 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View file

@ -287,3 +287,4 @@ fabric.properties
/markdownblog/static /markdownblog/static
/*.pem /*.pem
/markdownblog/cert.*

View file

@ -6,14 +6,12 @@ services:
depends_on: depends_on:
- db - db
volumes: volumes:
- ./markdownblog:/markdownblog - ./markdownblog:/markdownblog
ports: ports:
- "8000:8000" - "8000:8000"
env_file: env_file:
- envvars.env - envvars.env
command: python3 manage.py runserver 0.0.0.0:8000 command: python3 manage.py runserver_plus --cert-file cert.pem --key-file key.pem --keep-meta-shutdown 0.0.0.0:8000
db: db:
image: postgres:14.3-alpine image: postgres:14.3-alpine

View file

@ -33,6 +33,7 @@ INSTALLED_APPS = [
'markdownblog', 'markdownblog',
'fontawesomefree', 'fontawesomefree',
'django_2fa', 'django_2fa',
'django_extensions',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',

View file

@ -5,3 +5,6 @@ markdown2==2.4.3
fontawesomefree==6.1.1 fontawesomefree==6.1.1
pygments==2.12.0 pygments==2.12.0
django-2fa==0.9.0 django-2fa==0.9.0
django-extensions==3.1.5
Werkzeug==2.1.2
pyOpenSSL==22.0.0