fix: Update all URLs to use HTTPS instead of HTTP
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
- Update frontend .env.local to use https:// for API URLs - Update admin .env.local to use https:// for API URLs - Update start-dev.sh to generate .env.local files with HTTPS URLs - Update backend CORS configuration to allow HTTPS origins - Change WebSocket URLs from ws:// to wss:// This fixes the Mixed Content error when accessing the app over HTTPS
This commit is contained in:
1327
maternal-web/package-lock.json
generated
1327
maternal-web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
start-dev.sh
12
start-dev.sh
@@ -143,10 +143,10 @@ fi
|
||||
# Create .env.local if it doesn't exist
|
||||
if [ ! -f ".env.local" ]; then
|
||||
cat > .env.local << EOF
|
||||
NEXT_PUBLIC_API_URL=http://maternal-api.noru1.ro/api/v1
|
||||
NEXT_PUBLIC_GRAPHQL_URL=http://maternal-api.noru1.ro/graphql
|
||||
NEXT_PUBLIC_WS_URL=ws://maternal-api.noru1.ro
|
||||
NEXT_PUBLIC_APP_URL=http://maternal.noru1.ro
|
||||
NEXT_PUBLIC_API_URL=https://maternal-api.noru1.ro/api/v1
|
||||
NEXT_PUBLIC_GRAPHQL_URL=https://maternal-api.noru1.ro/graphql
|
||||
NEXT_PUBLIC_WS_URL=wss://maternal-api.noru1.ro
|
||||
NEXT_PUBLIC_APP_URL=https://maternal.noru1.ro
|
||||
NEXT_PUBLIC_APP_NAME=ParentFlow
|
||||
EOF
|
||||
log "Created .env.local for frontend"
|
||||
@@ -172,8 +172,8 @@ fi
|
||||
# Create .env.local if it doesn't exist
|
||||
if [ ! -f ".env.local" ]; then
|
||||
cat > .env.local << EOF
|
||||
NEXT_PUBLIC_API_URL=http://maternal-api.noru1.ro/api/v1
|
||||
NEXT_PUBLIC_APP_URL=http://pfadmin.noru1.ro
|
||||
NEXT_PUBLIC_API_URL=https://maternal-api.noru1.ro/api/v1
|
||||
NEXT_PUBLIC_APP_URL=https://pfadmin.noru1.ro
|
||||
NEXT_PUBLIC_APP_NAME=ParentFlow Admin
|
||||
EOF
|
||||
log "Created .env.local for admin dashboard"
|
||||
|
||||
Reference in New Issue
Block a user