diff --git a/apps/backend/src/middleware/responses.ts b/apps/backend/src/middleware/responses.ts index d63b1b47..cf4a063e 100644 --- a/apps/backend/src/middleware/responses.ts +++ b/apps/backend/src/middleware/responses.ts @@ -9,6 +9,7 @@ const SRC_COGNITO = [ 'https://cognito-idp.eu-north-1.amazonaws.com/', 'https://3dp4me-users.auth.eu-north-1.amazoncognito.com/oauth2/token', 'https://3dp4me-prosthetic-users.auth.eu-north-1.amazoncognito.com/oauth2/token', + 'https://eu-north-1pbpdjvkrs.auth.eu-north-1.amazoncognito.com/oauth2/token', 'https://cognito-identity.eu-north-1.amazonaws.com/', ] diff --git a/apps/frontend/package.json b/apps/frontend/package.json index f9f2d6a8..0a97b4ef 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -109,6 +109,7 @@ "build": "pnpm run build:hearing && pnpm run build:prosthetics", "build:hearing": "cross-env PROJECT_NAME=hearing webpack", "build:prosthetics": "cross-env PROJECT_NAME=prosthetics webpack", + "build:pt": "cross-env PROJECT_NAME=pt webpack", "clean": "rimraf .turbo dist node_modules", "lint": "pnpm run lint:check --fix", "lint:check": "eslint src --ext js,jsx,ts,tsx", diff --git a/apps/frontend/production.pt.env b/apps/frontend/production.pt.env new file mode 100644 index 00000000..e2074126 --- /dev/null +++ b/apps/frontend/production.pt.env @@ -0,0 +1,11 @@ +INLINE_RUNTIME_CHUNK=false +IMAGE_INLINE_SIZE_LIMIT=0 +SKIP_PREFLIGHT_CHECK=true +REACT_APP_BACKEND_BASE_URL="https://pt.3dp4me-software.org/api" +REACT_APP_CALLBACK_URL="https://pt.3dp4me-software.org" +REACT_APP_GOOGLE_MAPS_API_KEY="AIzaSyC-n-kB-baFd7AH3APHRcF9LueY7tPbcZU" +REACT_APP_COGNITO_IDENTITY_POOL_ID="eu-north-1:fe392f80-fb99-4d8a-b970-c05a126e54b1" +REACT_APP_COGNITO_REGION="eu-north-1" +REACT_APP_COGNITO_USER_POOL_ID="eu-north-1_PbpDjVKrs" +REACT_APP_COGNITO_WEB_CLIENT_ID="5up9buf8cpo3agj72tf9kjpds5" +REACT_APP_OAUTH_DOMAIN="eu-north-1pbpdjvkrs.auth.eu-north-1.amazoncognito.com" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5b77e12c..106e0466 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,6 +22,17 @@ services: - DOPPLER_TOKEN=${DOPPLER_TOKEN_3DP4ME_PROSTHETICS} - DOPPLER_CONFIG=prd_prosthetics + pt_web_app: + env_file: .env + build: + context: . + args: + PROJECT_NAME: pt + environment: + - PORT=5052 + - DOPPLER_TOKEN=${DOPPLER_TOKEN_3DP4ME_PT} + - DOPPLER_CONFIG=prd_pt + nginx: build: ./nginx ports: @@ -29,4 +40,5 @@ services: restart: always depends_on: - prosthetics_web_app - - hearing_aid_web_app \ No newline at end of file + - hearing_aid_web_app + - pt_web_app \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 064a8ff9..afbd3f7e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -20,4 +20,13 @@ http { proxy_pass http://prosthetics_web_app:5051/; } } + + server { + listen 80; + server_name www.pt.3dp4me-software.org pt.3dp4me-software.org; + location / { + client_max_body_size 100G; + proxy_pass http://pt_web_app:5052/; + } + } } \ No newline at end of file