mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented OAuth2-Proxy and other security measures for phpmyadmin
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
services:
|
||||
|
||||
{% include 'roles/docker-oauth2-proxy/templates/container.yml.j2' %}
|
||||
|
||||
application:
|
||||
logging:
|
||||
driver: journald
|
||||
@@ -6,8 +9,10 @@ services:
|
||||
container_name: phpmyadmin
|
||||
environment:
|
||||
PMA_HOST: central-mariadb
|
||||
{% if phpmyadmin_autologin | bool %}
|
||||
PMA_USER: root
|
||||
PMA_PASSWORD: "{{central_mariadb_root_password}}"
|
||||
{% endif %}
|
||||
restart: {{docker_restart_policy}}
|
||||
ports:
|
||||
- "127.0.0.1:{{http_port}}:80"
|
||||
|
@@ -1,2 +1,8 @@
|
||||
docker_compose_project_name: "phpmyadmin"
|
||||
database_type: "mariadb"
|
||||
database_type: "mariadb"
|
||||
database_host: "{{ 'central-' + database_type if enable_central_database}}"
|
||||
# OAuth2 Proxy Configuration
|
||||
oauth2_proxy_client_secret: "{{phpmyadmin_oauth2_proxy_client_secret}}"
|
||||
oauth2_proxy_cookie_secret: "{{phpmyadmin_oauth2_proxy_cookie_secret}}"
|
||||
oauth2_proxy_upstream_application_and_port: "application:80"
|
||||
oauth2_proxy_active: true
|
Reference in New Issue
Block a user