Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
70c2f07b
Commit
70c2f07b
authored
Nov 24, 2022
by
Ai-Sasit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update https
parent
6f33acd8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
5 deletions
+59
-5
Dockerfile
Dockerfile
+3
-1
cert.pem
cert.pem
+26
-0
key.pem
key.pem
+28
-0
main.py
main.py
+2
-2
core.py
server/core.py
+0
-2
No files found.
Dockerfile
View file @
70c2f07b
...
...
@@ -8,4 +8,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
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"]
cert.pem
0 → 100644
View file @
70c2f07b
-----BEGIN CERTIFICATE-----
MIIEazCCAtOgAwIBAgIQKN0XHUhhQ0Lns7g2OcO8ujANBgkqhkiG9w0BAQsFADCB
kTEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTMwMQYDVQQLDCpBSS1T
QVNJVFxzYXNpdEBBaS1TYXNpdCAoU2FzaXQgV2lyYXRqaW5kYSkxOjA4BgNVBAMM
MW1rY2VydCBBSS1TQVNJVFxzYXNpdEBBaS1TYXNpdCAoU2FzaXQgV2l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rBD2LlNBpwmM10R8IGwHwioOjeWBpjzKMhCIXVVsororBB
xg17BlKMxMp1yRzoYM/6s4kablvzrNnxa4IVYMNr3hjFBbs2dr1X/0MENo8wuBcU
kj+6ukbbP/mLCWHKzVSoFm0PZ8kCgYEA17R1gRzQsXh2nsI/gocsgH4ibTNX0RkN
sAsfr8hhjHtPS6hbaAf285PMM0peHbh+qDnTvaR1fKoHX+Uv5JGy5UkHmLHHGAGM
WqJNHU3Teu9Y5HWJBjBJrs8nyZtXm0uZdb65P/NjQWIsPZ4PMXx5LLVqrlUq72sG
lRdgWsa0cEUCgYBczH358dtUYSpmevPnTugWECxPfF2g1iVDsn9wNM3qLfXuDr8+
cpRAIu3slbWrb5+ADUFBLLh8iOTyssUjxjdA6wW0VxMd5O2alPgGsxlYGxt5d/A7
QS5bGyPzd5fNJUxy2z9DFFgTpfZPtCTAqbpVqmbeiYVGmZ1dOydnSVa84QKBgC4c
m8oAGPT3ZZRGvkDvGKpXTJC/mxROIMjzd9CiK4hWi/sGgJPasAYeIFcOnNQJrrnT
stoloCAIUQ9E9VoNc4rkc8VGq+ML4a82ZvnOu1jadcxQ+/vgsr+19TF6Dd5a6PFs
1jk/lIZTsFVzxpeznkvadHXUKxuHa57Pon+FXulpAoGAdA0KN0Hvr3f1w90EZYk9
Q+w4MDEidBfK/PjvVBMHp5ePlao4PGLrk97CDfvTqzFARR70F4R40/Sv2oM7a5Rn
6T42nYI0Ssb2XfbkwcyWZWdpm5iWmwQodyAUW+BBLVlpjs64oK4H6+iKB/RXReu2
hxfFRzK4pCngebAxEJO7qmk=
-----END PRIVATE KEY-----
main.py
View file @
70c2f07b
import
uvicorn
if
__name__
==
"__main__"
:
uvicorn
.
run
(
"server.core:app"
,
host
=
"0.0.0.0"
,
port
=
8000
,
reload
=
True
)
\ No newline at end of file
uvicorn
.
run
(
"server.core:app"
,
host
=
"0.0.0.0"
,
port
=
5000
,
reload
=
True
)
\ No newline at end of file
server/core.py
View file @
70c2f07b
import
re
from
fastapi
import
FastAPI
from
fastapi.middleware.cors
import
CORSMiddleware
from
server.routes.scb_service
import
scb
from
server.routes.user
import
user
from
server.routes.shop
import
shop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment