Addapt pgadmin variables

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-04 11:20:38 +02:00
parent 2c964cfbee
commit b77f116bdf
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
6 changed files with 23 additions and 7 deletions

View File

@ -23,6 +23,7 @@ For optimal personal security, we **strongly recommend** the following:
Following these guidelines will significantly enhance your personal security—but remember, no system is completely immune to risk. Following these guidelines will significantly enhance your personal security—but remember, no system is completely immune to risk.
A tutorial how to setup secure password management you will find [here](https://blog.veen.world/blog/2025/04/04/%f0%9f%9b%a1%ef%b8%8f-keepassxc-cymais-cloud-the-ultimate-guide-to-cross-device-password-security/)
--- ---
## For Administrators ## For Administrators

View File

@ -623,9 +623,11 @@ defaults_applications:
## PgAdmin ## PgAdmin
pgadmin: pgadmin:
version: "latest" version: "latest"
default_email: "{{ users.administrator.email }}" # Initial login email address users:
default_password: "{{ users.administrator.initial_password }}" # Initial login password should be overridden in inventory for security administrator:
email: "{{ users.administrator.email }}" # Initial login email address
password: "{{ users.administrator.initial_password }}" # Initial login password should be overridden in inventory for security
oauth2_proxy: oauth2_proxy:
enabled: true # Enable OAuth2 proxy for authentication enabled: true # Enable OAuth2 proxy for authentication
application: "application" application: "application"

View File

@ -12,6 +12,10 @@ The role ensures consistent deployments, full automation, and secure configurati
To automate the deployment of **secure, extensible, and production-ready Nextcloud instances** using Docker and Ansible. To automate the deployment of **secure, extensible, and production-ready Nextcloud instances** using Docker and Ansible.
## User Guide
The Nextcloud User Guide you will find [here](https://docs.nextcloud.com/server/latest/user_manual/en/).
## Features ## Features
- Dockerized Nextcloud (PHP-FPM, Nginx, Cron, Redis) - Dockerized Nextcloud (PHP-FPM, Nginx, Cron, Redis)

View File

@ -0,0 +1,9 @@
# Setup
## Cookie Secret
To generate a cookie secret execute:
```bash
ansible-vault encrypt_string "$(openssl rand -hex 16)"
```

View File

@ -1,5 +1,5 @@
# Configuration @see https://hub.docker.com/r/dpage/pgadmin4 # Configuration @see https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
PGADMIN_DEFAULT_EMAIL={{ applications.pgadmin.default_email }} PGADMIN_DEFAULT_EMAIL={{ applications[application_id].users.administrator.email }}
PGADMIN_DEFAULT_PASSWORD={{ applications.pgadmin.default_password }} PGADMIN_DEFAULT_PASSWORD={{ applications.[application_id].users.administrator.password }}
PGADMIN_DISABLE_POSTFIX=True PGADMIN_DISABLE_POSTFIX=True

View File

@ -1,7 +1,7 @@
# Configuration @see https://hub.docker.com/_/phpmyadmin # Configuration @see https://hub.docker.com/_/phpmyadmin
PMA_HOST= central-mariadb PMA_HOST= central-mariadb
{% if applications.phpmyadmin.autologin | bool %} {% if applications.[application_id].autologin | bool %}
PMA_USER= root PMA_USER= root
PMA_PASSWORD= "{{central_mariadb_root_password}}" PMA_PASSWORD= "{{central_mariadb_root_password}}"
{% endif %} {% endif %}