+ non-www redirect nginx script (with todo)
+ domain_name & refactored nginx variables for resolve connect of www-domain logic and redirect to or from * some installs have error after login to non-privileged user with starship $-symbol - correct escaped function for that + use separate domain for pma nginx config based on new domain_name variable (defined in nginx vars file) * update database example vars (use inventory dir path and bz2 by default) #861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
---
|
||||
- name: Nerest bash PATH var with set true paths after pct enter into lxc container from proxmox host
|
||||
hosts: [ 'debian10' ]
|
||||
# TODO: Tmux create session not worked in pct enter - only work tmux attach (so..)
|
||||
tasks:
|
||||
- name: Append .shell-env
|
||||
ansible.builtin.lineinfile:
|
||||
|
@ -8,6 +8,7 @@
|
||||
hosts: [ 'debian10' ]
|
||||
|
||||
vars_files:
|
||||
- ./../../vars/nginx.yml
|
||||
- ./../../vars/php.yml
|
||||
|
||||
tasks:
|
||||
@ -20,8 +21,11 @@
|
||||
dest: '/etc/nginx/sites-available/pma.conf'
|
||||
content: |-
|
||||
server {
|
||||
listen 81;
|
||||
server_name {{ site_name }};
|
||||
listen 80;
|
||||
listen 443;
|
||||
ssl_certificate /etc/pki/realms/domain/default.crt;
|
||||
ssl_certificate_key /etc/pki/realms/domain/default.key;
|
||||
server_name pma.{{ domain_name }};
|
||||
root /var/www/phpmyadmin;
|
||||
index index.php;
|
||||
include auth.d/pma-auth.conf;
|
||||
|
@ -10,6 +10,7 @@
|
||||
vars:
|
||||
- phpmyadmin_version: 5.2.1
|
||||
|
||||
# Create phpmyadmin config for apache2
|
||||
# TODO: Set blowfish_secret and make access rights for ./tmp directory
|
||||
tasks:
|
||||
- name: 'Download phpMyAdmin {{ phpmyadmin_version }} into var/www dir and uncompress'
|
||||
|
Reference in New Issue
Block a user