Skip to content

Commit 2be0937

Browse files
committed
sikerler
1 parent 1858c93 commit 2be0937

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/main.yml

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

backend/Dockerfile

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

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

28-
COPY ./app /app/app
29-
30-
COPY ./.env /app/.env
28+
COPY ./app /app/app

backend/app/main.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ 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+
]
2536
print(settings.BACKEND_CORS_ORIGINS)
2637
app.add_middleware(
2738
CORSMiddleware,

0 commit comments

Comments
 (0)