Fix 'nginx configuration test failed invalid parameter' - Fix Docker Registry Authentication Failed Access Denied-Resolving Git's Refusing to Merge Unrelated Histories

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.