Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix: apply login layout to the main login form + bind BYO-image legacy port to loopback

Juan Denis3954680c8700
diff --git a/backend/app/api/apps.py b/backend/app/api/apps.py
index b2faa1c6..96877ca9 100644
--- a/backend/app/api/apps.py
+++ b/backend/app/api/apps.py
@@ -134,7 +134,9 @@ def _ensure_local_image_compose(app):
container = {'name': 'app', 'image': app.docker_image}
ports = AppPortService.get_ports(app)
if not ports and app.port:
- ports = [{'host_port': app.port, 'container_port': app.port}]
+ # Bind the legacy scalar port to loopback — nginx fronts it; publishing
+ # 0.0.0.0 (AppPortService._clean's default) would expose it past nginx.
+ ports = [{'host_port': app.port, 'container_port': app.port, 'expose': 'local'}]
if ports:
container['ports'] = ports
if app.healthcheck_path:
diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx
index eb7a9afd..7d4b8034 100644
--- a/frontend/src/pages/Login.jsx
+++ b/frontend/src/pages/Login.jsx
@@ -298,8 +298,7 @@ const Login = () => {
// Render normal login form
return (
- <div className="auth-container">
- <div className="auth-card">
+ <AuthLayout>
<div className="auth-header">
<div className="brand-logo">
<ServerKitLogo width={40} height={40} />
@@ -382,8 +381,7 @@ const Login = () => {
Don&apos;t have an account? <Link to="/register">Create one</Link>
</p>
)}
- </div>
- </div>
+ </AuthLayout>
);
};