pilot.landvex.com: Configure for public access
- DNS: pilot.landvex.com -> 16.170.83.169 - Nginx: reverse proxy to API (3002) and UI (3003) - Vite: allow pilot.landvex.com host - Proxy: /api, /version, /health to API Verified: - http://pilot.landvex.com/health -> OK - http://pilot.landvex.com/version -> version info - http://pilot.landvex.com/ -> UI loads Next: TLS/HTTPS with Let's Encrypt
This commit is contained in:
@@ -5,8 +5,11 @@ export default defineConfig({
|
|||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: 3001,
|
port: 3001,
|
||||||
|
allowedHosts: ['pilot.landvex.com', 'localhost'],
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': 'http://localhost:3000'
|
'/api': 'http://localhost:3002',
|
||||||
|
'/version': 'http://localhost:3002',
|
||||||
|
'/health': 'http://localhost:3002'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user