Skip to content

Commit c902ba6

Browse files
committed
🔧 Update backend to run on port 8000 by default
1 parent 5780a36 commit c902ba6

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
npm ci --legacy-peer-deps
3737
CI=false npm run build
3838
env:
39-
REACT_APP_API_URL: "http://localhost:8080"
39+
REACT_APP_API_URL: "http://localhost:8000"
4040

4141
- uses: actions/upload-artifact@v4
4242
with:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ LABEL org.label-schema.vcs-ref=$COMMIT_HASH \
112112
RUN python src/manage.py collectstatic --noinput \
113113
&& python src/manage.py compilemessages
114114

115-
EXPOSE 8080
115+
EXPOSE 8000
116116
CMD ["/start.sh"]

backend/bin/docker_start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export PGPORT=${DB_PORT:-5432}
99

1010
fixtures_dir=${FIXTURES_DIR:-/app/fixtures}
1111

12-
uwsgi_port=${UWSGI_PORT:-8080}
12+
uwsgi_port=${UWSGI_PORT:-8000}
1313
uwsgi_processes=${UWSGI_PROCESSES:-4}
1414
uwsgi_threads=${UWSGI_THREADS:-1}
1515

backend/dotenv.dev.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DISABLE_2FA=yes
22

33
ALLOWED_HOSTS=localhost
4-
CORS_ALLOWED_ORIGINS=http://localhost:8080,http://localhost:3000
4+
CORS_ALLOWED_ORIGINS=http://localhost:8000,http://localhost:3000
55
CSRF_TRUSTED_ORIGINS=http://localhost:3000
66
CSRF_COOKIE_SAMESITE='None'
77
CSRF_COOKIE_SECURE=False

backend/src/openarchiefbeheer/conf/ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from .base import * # noqa isort:skip
2121

2222
# End-to-end test settings
23-
E2E_PORT = config("E2E_PORT", default=8080)
23+
E2E_PORT = config("E2E_PORT", default=8000)
2424
E2E_SERVE_FRONTEND = config("E2E_SERVE_FRONTEND", default=False)
2525

2626
CACHES.update(

backend/src/openarchiefbeheer/conf/dev.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
)
9696

9797
# End-to-end test settings
98-
E2E_PORT = config("E2E_PORT", default=8080)
98+
E2E_PORT = config("E2E_PORT", default=8000)
9999
E2E_SERVE_FRONTEND = config("E2E_SERVE_FRONTEND", default=False)
100100

101101
# Playwright settings

docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ services:
3333
- DB_HOST=db
3434
- CACHE_DEFAULT=redis:6379/0
3535
- CACHE_AXES=redis:6379/0
36-
- CORS_ALLOWED_ORIGINS=http://localhost:9000,http://localhost:8080
37-
- CSRF_TRUSTED_ORIGINS=http://localhost:9000,http://localhost:8080
36+
- CORS_ALLOWED_ORIGINS=http://localhost:9000,http://localhost:8000
37+
- CSRF_TRUSTED_ORIGINS=http://localhost:9000,http://localhost:8000
3838
- CSRF_COOKIE_SAMESITE=none
3939
- CSRF_COOKIE_SECURE=False
4040
- SESSION_COOKIE_SAMESITE=none
@@ -44,11 +44,11 @@ services:
4444
- CELERY_BROKER_URL=redis://redis:6379/0
4545
- CELERY_RESULT_BACKEND=redis://redis:6379/0
4646
- CELERY_LOGLEVEL=DEBUG
47-
- REACT_APP_API_URL=http://localhost:8080
47+
- REACT_APP_API_URL=http://localhost:8000
4848
- REACT_APP_API_PATH=/api/v1
4949
- REACT_APP_ZAAK_URL_TEMPLATE=https://www.example.com/zaken/{identificatie}
5050
ports:
51-
- 8080:8080
51+
- 8000:8000
5252
depends_on:
5353
- db
5454
- redis

docker-nginx-default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ server {
33
server_name localhost;
44

55
location ~ ^/admin|static|assets|api/ {
6-
proxy_pass http://web:8080;
6+
proxy_pass http://web:8000;
77
proxy_set_header Host $http_host;
88
}
99

0 commit comments

Comments
 (0)