Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/backend/src/middleware/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
]

Expand Down
1 change: 1 addition & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions apps/frontend/production.pt.env
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,23 @@ 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:
- 8080:80
restart: always
depends_on:
- prosthetics_web_app
- hearing_aid_web_app
- hearing_aid_web_app
- pt_web_app
9 changes: 9 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/;
}
}
}
Loading