Commit 70c2f07b authored by Ai-Sasit's avatar Ai-Sasit

update https

parent 6f33acd8
...@@ -8,4 +8,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt ...@@ -8,4 +8,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./server /code/server COPY ./server /code/server
CMD ["uvicorn", "server.core:app", "--host", "0.0.0.0", "--port", "80"] COPY *.pem /code
CMD ["uvicorn", "server.core:app", "--host", "0.0.0.0", "--port", "80","--ssl-keyfile","./key.pem","--ssl-certfile","./cert.pem"]
-----BEGIN CERTIFICATE-----
MIIEazCCAtOgAwIBAgIQKN0XHUhhQ0Lns7g2OcO8ujANBgkqhkiG9w0BAQsFADCB
kTEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTMwMQYDVQQLDCpBSS1T
QVNJVFxzYXNpdEBBaS1TYXNpdCAoU2FzaXQgV2lyYXRqaW5kYSkxOjA4BgNVBAMM
MW1rY2VydCBBSS1TQVNJVFxzYXNpdEBBaS1TYXNpdCAoU2FzaXQgV2lyYXRqaW5k
YSkwHhcNMjIxMTI0MDgxOTIyWhcNMjUwMjI0MDgxOTIyWjBeMScwJQYDVQQKEx5t
a2NlcnQgZGV2ZWxvcG1lbnQgY2VydGlmaWNhdGUxMzAxBgNVBAsMKkFJLVNBU0lU
XHNhc2l0QEFpLVNhc2l0IChTYXNpdCBXaXJhdGppbmRhKTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAMFvREolwvvN1NT03T6UWT8+VXZ78t6ubv6TcuzZ
vekrCjJDtr/0hZyjDG64LUilQ3KvYJdpdn4b8djjPsQ7d2LUM1/OJVJaODS7lprl
/4JgKJxxIdLF+G6tmmVEvHF9Luuu5jMRfZFsoIFww49Jg6C9isRKL8TnvYaT2+vV
1ak7/HvWXuUXlQBfCUXtWVCgFUXDmilaz3M2W1VVkBL46JWbfwqZFx2XFNgQrRO3
l0HiNnYGEj5BQfbYKirfN/GUmWRieWEe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XTJC/mxROIMjzd9CiK4hWi/sGgJPasAYeIFcOnNQJrrnT
stoloCAIUQ9E9VoNc4rkc8VGq+ML4a82ZvnOu1jadcxQ+/vgsr+19TF6Dd5a6PFs
1jk/lIZTsFVzxpeznkvadHXUKxuHa57Pon+FXulpAoGAdA0KN0Hvr3f1w90EZYk9
Q+w4MDEidBfK/PjvVBMHp5ePlao4PGLrk97CDfvTqzFARR70F4R40/Sv2oM7a5Rn
6T42nYI0Ssb2XfbkwcyWZWdpm5iWmwQodyAUW+BBLVlpjs64oK4H6+iKB/RXReu2
hxfFRzK4pCngebAxEJO7qmk=
-----END PRIVATE KEY-----
import uvicorn import uvicorn
if __name__ == "__main__": if __name__ == "__main__":
uvicorn.run("server.core:app", host="0.0.0.0", port=8000, reload=True) uvicorn.run("server.core:app", host="0.0.0.0", port=5000, reload=True)
\ No newline at end of file \ No newline at end of file
import re
from fastapi import FastAPI from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from server.routes.scb_service import scb from server.routes.scb_service import scb
from server.routes.user import user from server.routes.user import user
from server.routes.shop import shop from server.routes.shop import shop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment