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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user