Fix webui port binding: restore public access on 8081

The devops security pass incorrectly bound the webui to 127.0.0.1,
making it unreachable from the network. The webui is the user-facing
interface and must be publicly accessible. Internal-only services
(api :3000, radicale :5232, webdav :8080, rainloop :8888,
filegator :8082) retain their loopback bindings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 16:10:49 -04:00
parent fc3cfc9741
commit 1e81b3b618
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ services:
build: ./webui
container_name: cell-webui
ports:
- "127.0.0.1:${WEBUI_PORT:-8081}:80"
- "${WEBUI_PORT:-8081}:80"
restart: unless-stopped
networks:
cell-network:
+6 -1
View File
@@ -29,7 +29,12 @@ api.interceptors.response.use(
},
(error) => {
console.error('API Response Error:', error.response?.data || error.message);
if (error.response?.status === 401 && !error.config.url.includes('/auth/login')) {
if (
error.response?.status === 401 &&
!error.config.url.includes('/auth/login') &&
!error.config.url.includes('/auth/me') &&
window.location.pathname !== '/login'
) {
window.location.href = '/login';
}
return Promise.reject(error);