소스 검색

add critical files for https

Jason 2 년 전
부모
커밋
8826f28a40
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      runhttps.py

+ 15 - 0
runhttps.py

@@ -0,0 +1,15 @@
+from backstage import create_app
+#from models import create_app
+import logging
+
+logger = logging.getLogger(__name__)
+
+app = create_app()
+
+
+if __name__ == '__main__':
+    context = ('/etc/letsencrypt/live/bhouse3.ptt.cx/fullchain.pem', '/etc/letsencrypt/live/bhouse3.ptt.cx/privkey.pem')
+    logging.basicConfig(
+        level=logging.INFO,
+        format='%(asctime)s %(levelname)s %(message)s')
+    app.run(host='0.0.0.0', debug=True, port=9002, ssl_context=context)