Update production URL to optical-dev.oliver.solution

Replace ai-sandbox.oliver.solutions with optical-dev.oliver.solution
across all config, env, docs, and source files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-20 12:55:45 +00:00
parent 3e1865edbd
commit bb4dca0fe8
6 changed files with 14 additions and 14 deletions

View file

@ -1,16 +1,16 @@
# Production Environment Configuration
# Frontend URL (production server)
VITE_FRONTEND_BASE_URL=https://ai-sandbox.oliver.solutions/semblance
VITE_FRONTEND_BASE_URL=https://optical-dev.oliver.solution/semblance
# Backend API URL (production server)
VITE_API_BASE_URL=https://ai-sandbox.oliver.solutions/semblance_back/api
VITE_API_BASE_URL=https://optical-dev.oliver.solution/semblance_back/api
# WebSocket path (production server)
VITE_WEBSOCKET_PATH=/semblance_back/socket.io/
# MSAL Authentication (production server)
VITE_MSAL_REDIRECT_URI=https://ai-sandbox.oliver.solutions/semblance
VITE_MSAL_POST_LOGOUT_REDIRECT_URI=https://ai-sandbox.oliver.solutions/semblance
VITE_MSAL_REDIRECT_URI=https://optical-dev.oliver.solution/semblance
VITE_MSAL_POST_LOGOUT_REDIRECT_URI=https://optical-dev.oliver.solution/semblance
# Local login (username/password) - disable for production
VITE_ENABLE_LOCAL_LOGIN=false

View file

@ -110,9 +110,9 @@ The application automatically adapts based on environment variables:
**Production Mode:**
- Base path: `/semblance/`
- API base: `https://ai-sandbox.oliver.solutions/semblance_back/api`
- API base: `https://optical-dev.oliver.solution/semblance_back/api`
- WebSocket path: `/semblance_back/socket.io/`
- MSAL redirect: `https://ai-sandbox.oliver.solutions/semblance`
- MSAL redirect: `https://optical-dev.oliver.solution/semblance`
### Setup Instructions
1. **For local development**: Copy `.env.development` to `.env`

View file

@ -186,9 +186,9 @@ The `llm_service.py` module provides a unified interface across multiple AI prov
| Setting | Development | Production |
|---|---|---|
| **Base Path** | `/` | `/semblance/` |
| **API Base URL** | `/api` (proxied to `:5137`) | `https://ai-sandbox.oliver.solutions/semblance_back/api` |
| **API Base URL** | `/api` (proxied to `:5137`) | `https://optical-dev.oliver.solution/semblance_back/api` |
| **WebSocket Path** | `/socket.io/` | `/semblance_back/socket.io/` |
| **MSAL Redirect** | `http://localhost:5173/` | `https://ai-sandbox.oliver.solutions/semblance` |
| **MSAL Redirect** | `http://localhost:5173/` | `https://optical-dev.oliver.solution/semblance` |
| **Local Login** | Enabled | Disabled |
Environment files:

View file

@ -94,7 +94,7 @@ def create_app():
# Initialize extensions — restrict CORS to known origins
_allowed_origins = os.environ.get(
'CORS_ALLOWED_ORIGINS',
'https://ai-sandbox.oliver.solutions'
'https://optical-dev.oliver.solution'
)
_origins = [o.strip() for o in _allowed_origins.split(',')]
app = cors(app, allow_origin=_origins, allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"])

View file

@ -624,7 +624,7 @@ DIAGRAMS = {
"deployment_architecture": """graph TB
User["User Browser"]
subgraph Production["Production Server (ai-sandbox.oliver.solutions)"]
subgraph Production["Production Server (optical-dev.oliver.solution)"]
Nginx["Nginx<br/>Reverse Proxy"]
subgraph Static["Static Assets"]
@ -1232,7 +1232,7 @@ def build_chapter_2(rendered):
e.append(h2("Deployment Topology", "ch2_deploy"))
e.append(p(
"In production, the application is deployed at <b>ai-sandbox.oliver.solutions</b> behind an "
"In production, the application is deployed at <b>optical-dev.oliver.solution</b> behind an "
"Nginx reverse proxy that routes requests to either the static frontend assets or the backend "
"application server."
))
@ -1248,11 +1248,11 @@ def build_chapter_2(rendered):
["Setting", "Development", "Production"],
[
["Base Path", "/", "/semblance/"],
["API Base URL", "/api", "https://ai-sandbox.oliver.solutions/semblance_back/api"],
["API Base URL", "/api", "https://optical-dev.oliver.solution/semblance_back/api"],
["WebSocket Path", "/socket.io/", "/semblance_back/socket.io/"],
["Frontend Port", "5173 (Vite dev server)", "Static assets via Nginx"],
["Backend Port", "5137 (Hypercorn)", "5137 (proxied via Nginx)"],
["MSAL Redirect", "http://localhost:5173/", "https://ai-sandbox.oliver.solutions/semblance"],
["MSAL Redirect", "http://localhost:5173/", "https://optical-dev.oliver.solution/semblance"],
],
col_widths=[110, (CONTENT_WIDTH - 118) / 2, (CONTENT_WIDTH - 118) / 2],
))

View file

@ -175,7 +175,7 @@ export function getWebSocketUrl(): string {
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('direct') === '1') {
console.log('🔧 USING DIRECT WEBSOCKET CONNECTION (bypassing Apache)');
return 'https://ai-sandbox.oliver.solutions:5137';
return 'https://optical-dev.oliver.solution:5137';
}
// For production with Apache proxy, use the current origin