Features: - Device presets (desktop, mobile, tablet, obs-overlay, all, electron) - Auth setup projects with storage state management - Cluster mode for Docker nginx multi-app routing - Multiple reporters (list, html, junit, github) - WebServer configuration for dev server management - Enhanced helpers: file upload, platform, performance, accessibility, storage - GitLab CI templates for package and consumers - Docker templates: Electron, web-only, cluster compose Breaking changes from 1.0: - Enhanced PlaywrightConfigOptions interface with new options - Exported commonDevices for device configuration access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
75 lines
1.9 KiB
Nginx Configuration File
75 lines
1.9 KiB
Nginx Configuration File
# Nginx configuration for E2E cluster routing
|
|
#
|
|
# Routes requests to appropriate services based on path
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
upstream frontend {
|
|
server app-frontend:3000;
|
|
}
|
|
|
|
upstream api {
|
|
server app-api:3001;
|
|
}
|
|
|
|
upstream mock {
|
|
server mock-service:8080;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
# Health check endpoint
|
|
location /health {
|
|
access_log off;
|
|
return 200 "healthy\n";
|
|
add_header Content-Type text/plain;
|
|
}
|
|
|
|
# API routes
|
|
location /api/ {
|
|
proxy_pass http://api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_cache_bypass $http_upgrade;
|
|
|
|
# SSE support
|
|
proxy_read_timeout 3600s;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
# Mock service routes
|
|
location /mock/ {
|
|
proxy_pass http://mock/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
# SSE support
|
|
proxy_read_timeout 3600s;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
# Frontend (default)
|
|
location / {
|
|
proxy_pass http://frontend;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
|
|
# WebSocket support for HMR in dev
|
|
proxy_read_timeout 86400s;
|
|
}
|
|
}
|
|
}
|