mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[PR #4794] [MERGED] Add basic MySQL TLS support #3960
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#3960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/4794
Author: @Johno-ACSLive
Created: 10/8/2025
Status: ✅ Merged
Merged: 11/3/2025
Merged by: @jc21
Base:
develop← Head:develop📝 Commits (3)
e34206bInclude SSL Options for MySQL5acf287Aligned Assignments and arrow-parens71a2277Replace spaces with tabs📊 Changes
3 files changed (+26 additions, -5 deletions)
View changed files
📝
backend/db.js(+2 -1)📝
backend/lib/config.js(+10 -4)📝
docs/src/setup/index.md(+14 -0)📄 Description
Summary
This PR adds minimal, opt‑in TLS support for MySQL connections in Nginx Proxy Manager. It introduces three environment variables:
DB_MYSQL_SSLfalseDB_MYSQL_SSL_REJECT_UNAUTHORIZEDtrueDB_MYSQL_SSL_VERIFY_IDENTITYtrueNo behavior changes for existing users unless
DB_MYSQL_SSLis explicitly enabled. Does not impact other DB engine configuration.Motivation
Environments such as:
require_secure_transport=ON…currently cause startup failure (
ER_SECURE_TRANSPORT_REQUIRED) because connection attempts are plaintext. This update allows secure connections while remaining completely backward compatible.Backward Compatibility
DB_MYSQL_SSL=true)DB_MYSQL_SSL_REJECT_UNAUTHORIZED=false)DB_MYSQL_SSL_VERIFY_IDENTITY=trueOut of Scope / Future Work
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.