Simplify to standalone service on shared nocodb-network, add modem_num field

Strips embedded nocodb/postgres services from compose; switches to shared
nocodb-network. Adds modem_num to NocoDB field list. Fixes session cookie
secure flag. Removes previously-tracked XML template files (covered by .gitignore).
This commit is contained in:
D Stephenson
2026-06-23 11:38:51 -05:00
parent 056bc1cec3
commit f8125ed123
2 changed files with 29 additions and 114 deletions
+2 -2
View File
@@ -300,7 +300,7 @@ def _fetch_all_rows(view_id: str) -> list:
NOCODB_FIELDS = [
"hostname", "ip_address", "username", "password", "https_port",
"use_https", "ssh_port", "location", "alias", "dept", "def_pass",
"snmp_auth_key", "snmp_priv_key", "fort_key", "vpn_subnets",
"snmp_auth_key", "snmp_priv_key", "fort_key", "vpn_subnets", "modem_num",
]
@@ -1475,7 +1475,7 @@ async def auth_login(username: str = Form(...), password: str = Form(...)):
resp = RedirectResponse(url="/", status_code=303)
resp.set_cookie(
key=SESSION_COOKIE, value=token,
httponly=True, secure=True, samesite="lax",
httponly=True, secure=False, samesite="lax",
max_age=SESSION_HOURS * 3600,
)
return resp