mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 05:00:05 +00:00

- Updated Docker configuration to support PostgreSQL as an alternative to SQLite. - Enhanced DockerEntrypoint.sh to create a database environment file and test PostgreSQL connection. - Introduced database setup functions in install.sh for PostgreSQL installation and configuration. - Added database management options in x-ui.sh, including backup and switching between SQLite and PostgreSQL. - Implemented database configuration retrieval in the web service and controller layers. - Updated frontend settings to include database configuration options. - Added translations for new database settings in multiple languages.
23 lines
No EOL
572 B
JSON
23 lines
No EOL
572 B
JSON
{
|
|
"Servers": {
|
|
"1": {
|
|
"Name": "3X-UI PostgreSQL",
|
|
"Group": "Servers",
|
|
"Host": "postgres",
|
|
"Port": 5432,
|
|
"MaintenanceDB": "x_ui",
|
|
"Username": "x_ui",
|
|
"PassFile": "/tmp/pgpassfile",
|
|
"SSLMode": "disable",
|
|
"SSLCert": "<STORAGE_DIR>/.postgresql/postgresql.crt",
|
|
"SSLKey": "<STORAGE_DIR>/.postgresql/postgresql.key",
|
|
"SSLCompression": 0,
|
|
"Timeout": 10,
|
|
"UseSSHTunnel": 0,
|
|
"TunnelHost": "",
|
|
"TunnelPort": "22",
|
|
"TunnelUsername": "",
|
|
"TunnelAuthentication": 0
|
|
}
|
|
}
|
|
} |