Make Sure You Are Square With Your God Before Trying To Merge This
This commit is contained in:
@@ -32,5 +32,5 @@ setup_ui(limiter, app)
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# SSL context setup
|
# SSL context setup
|
||||||
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
|
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
|
||||||
context.load_cert_chain('../certs/mycert.crt', '../certs/mycert.key')
|
context.load_cert_chain('certs/cert.crt', 'certs/cert.key')
|
||||||
app.run(host='0.0.0.0', port=51820, ssl_context=context)
|
app.run(host='0.0.0.0', port=51820, ssl_context=context)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ bind = "0.0.0.0:51820"
|
|||||||
workers = 1 # or any other number of worker processes
|
workers = 1 # or any other number of worker processes
|
||||||
|
|
||||||
# SSL/TLS settings
|
# SSL/TLS settings
|
||||||
certfile = "../certs/mycert.crt"
|
certfile = "certs/cert.crt"
|
||||||
keyfile = "../certs/mycert.key"
|
keyfile = "certs/cert.key"
|
||||||
|
|
||||||
# WSGI application path
|
# WSGI application path
|
||||||
wsgi_app = 'wolServer:app'
|
wsgi_app = 'wolServer:app'
|
||||||
|
|||||||
11
setup.sh
11
setup.sh
@@ -1,12 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
mkdir -p certs
|
mkdir -p app/certs
|
||||||
|
openssl genrsa -out app/certs/cert.key 2048
|
||||||
openssl genrsa -out certs/mycert.key 2048
|
openssl req -new -key app/certs/cert.key -out app/certs/cert.csr -subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
|
||||||
|
openssl x509 -req -days 365 -in app/certs/cert.csr -signkey app/certs/cert.key -out app/certs/cert.crt
|
||||||
openssl req -new -key certs/mycert.key -out certs/mycert.csr -subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
|
|
||||||
|
|
||||||
openssl x509 -req -days 365 -in certs/mycert.csr -signkey certs/mycert.key -out certs/mycert.crt
|
|
||||||
|
|
||||||
LOCATION="$(pwd)"
|
LOCATION="$(pwd)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user