Added CT: Postgresql
This commit is contained in:
22
CT-Files/postgresql/Configs/pgadmin-config_local.py
Normal file
22
CT-Files/postgresql/Configs/pgadmin-config_local.py
Normal 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}]
|
||||
17
CT-Files/postgresql/Configs/pgadmin-server-import.json
Normal file
17
CT-Files/postgresql/Configs/pgadmin-server-import.json
Normal 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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"preferences":
|
||||
{
|
||||
"misc:themes:theme": "system"
|
||||
}
|
||||
}
|
||||
12
CT-Files/postgresql/Configs/pgadmin-uwsgi.ini
Normal file
12
CT-Files/postgresql/Configs/pgadmin-uwsgi.ini
Normal 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
|
||||
16
CT-Files/postgresql/Configs/pgadmin.service
Normal file
16
CT-Files/postgresql/Configs/pgadmin.service
Normal 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
|
||||
2
CT-Files/postgresql/Configs/pgpassfile
Normal file
2
CT-Files/postgresql/Configs/pgpassfile
Normal file
@@ -0,0 +1,2 @@
|
||||
localhost:5432:*:postgres:Password
|
||||
127.0.0.1:5432:*:postgres:Password
|
||||
Reference in New Issue
Block a user