Skip to content

Commit 3fb61f2

Browse files
authored
Merge pull request #18 from ituacm/main
sync dev
2 parents 3c4cc8b + 9d39128 commit 3fb61f2

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16-
- run: docker compose -f docker-compose.yml build
16+
- run: cp /home/hasan/ituacm_website_backend/.env ./
17+
- run: docker compose -f docker-compose.yml build --no-cache
1718
- run: docker compose -f docker-compose.yml up -d

backend/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ COPY ./prestart.sh /app/
2525

2626
COPY ./tests-start.sh /app/
2727

28-
COPY ./app /app/app
28+
COPY ./app /app/app

backend/app/main.py

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ def custom_generate_unique_id(route: APIRoute) -> str:
2222

2323
# Set all CORS enabled origins
2424
if settings.BACKEND_CORS_ORIGINS:
25+
settings.BACKEND_CORS_ORIGINS = [
26+
'http://localhost',
27+
'http://localhost:5173',
28+
'https://localhost',
29+
'https://localhost:5173',
30+
'https://ituacm.com',
31+
'https://api.ituacm.com',
32+
'https://adminer.ituacm.com',
33+
'https://admin.ituacm.com',
34+
'http://admin.ituacm.com'
35+
]
36+
print(settings.BACKEND_CORS_ORIGINS)
2537
app.add_middleware(
2638
CORSMiddleware,
2739
allow_origins=[

0 commit comments

Comments
 (0)