Added CT: Postgresql

This commit is contained in:
2025-01-05 17:43:29 +01:00
parent d425174eab
commit c767b21856
11 changed files with 171 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#pgAdmin Custom config
##########################################################################
# Misc stuff
##########################################################################
# Languages we support in the UI
LANGUAGES = {
'en': 'English'
}
##########################################################################
# External Database Settings
##########################################################################
CONFIG_DATABASE_URI = 'postgresql://pgadmin:DBPassword@localhost:5432/pgadmin'
##########################################################################
# In server mode, SHARED_STORAGE settings
##########################################################################
# Locations
SHARED_STORAGE = [{ 'name': 'Shared-Storage', 'path': '/var/lib/pgadmin/storage/shared', 'restricted_access': True}]

View File

@@ -0,0 +1,17 @@
{
"Servers": {
"1": {
"Name": "localhost",
"Group": "Servers",
"Host": "localhost",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "postgres",
"ConnectionParameters": {
"sslmode": "prefer",
"passfile": "Shared-Storage:/pgpassfile"
},
"Tags": []
}
}
}

View File

@@ -0,0 +1,6 @@
{
"preferences":
{
"misc:themes:theme": "system"
}
}

View File

@@ -0,0 +1,12 @@
[uwsgi]
http-socket= :80
chdir = /usr/pgadmin4/web/
module = pgAdmin4:application
threads = 25
processes = 1
wsgi-file = pgAdmin4.wsgi
mount = /pgadmin=pgAdmin4:app
manage-script-name = true
chmod-socket = 660
plugins = python3
home = /usr/pgadmin4/venv

View File

@@ -0,0 +1,16 @@
[Unit]
Description=pgAdmin uwsgi service
[Service]
ExecStart=/bin/uwsgi-core \
--ini /etc/uwsgi/apps-available/pgadmin.ini
User=pgadmin
Group=www-data
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=journal
NotifyAccess=all
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,2 @@
localhost:5432:*:postgres:Password
127.0.0.1:5432:*:postgres:Password