✨: config wwwdev
This commit is contained in:
@@ -17,3 +17,12 @@ mariadb_root_pass: !vault |
|
|||||||
39396636346563346135313431373630643536363838333964353636373437653166633761363664
|
39396636346563346135313431373630643536363838333964353636373437653166633761363664
|
||||||
3437653064323138310a663363373736623931336432376466316666616234356133383263373136
|
3437653064323138310a663363373736623931336432376466316666616234356133383263373136
|
||||||
31343534663063663134306464306234366430323762656165653930333134326231
|
31343534663063663134306464306234366430323762656165653930333134326231
|
||||||
|
|
||||||
|
webapps_htpasswd_editeurs: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63663638356139373663646639633762393761333536393331363066353039393266306638326336
|
||||||
|
3235353238666261373032363633626333646662343461330a393534633530353330323637386239
|
||||||
|
63336532646235663732623561333963643436353165633165663430313132626561363361333736
|
||||||
|
6662313535333063390a386532313335663836393562656564306633303933633234393139316131
|
||||||
|
61376332373961303961303963656565633639333130346565386361313338346235623434616239
|
||||||
|
6637613630333963363963646465633939663863356633373264
|
||||||
|
@@ -4,6 +4,8 @@ server {
|
|||||||
|
|
||||||
root /srv/http/wwwdev.nintendojo.fr/;
|
root /srv/http/wwwdev.nintendojo.fr/;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
auth_basic "Restricted Area";
|
||||||
|
auth_basic_user_file /etc/nginx/wwwdev.htpasswd;
|
||||||
|
|
||||||
client_max_body_size 2G;
|
client_max_body_size 2G;
|
||||||
|
|
||||||
|
@@ -9,6 +9,9 @@
|
|||||||
- name: WP for NintendojoFR
|
- name: WP for NintendojoFR
|
||||||
ansible.builtin.include_tasks: wp_dojo.yml
|
ansible.builtin.include_tasks: wp_dojo.yml
|
||||||
when: inventory_hostname == 'web2.dmz.mateu.be'
|
when: inventory_hostname == 'web2.dmz.mateu.be'
|
||||||
|
- name: WP dev for NintendojoFR
|
||||||
|
ansible.builtin.include_tasks: wpdev_dojo.yml
|
||||||
|
when: inventory_hostname == 'web2.dmz.mateu.be'
|
||||||
- name: Oolatoocs for NintendojoFR
|
- name: Oolatoocs for NintendojoFR
|
||||||
ansible.builtin.include_tasks: oolatoocs.yml
|
ansible.builtin.include_tasks: oolatoocs.yml
|
||||||
when: inventory_hostname in groups['mastodonservers']
|
when: inventory_hostname in groups['mastodonservers']
|
||||||
|
9
roles/webapps/tasks/wpdev_dojo.yml
Normal file
9
roles/webapps/tasks/wpdev_dojo.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Put htpasswd file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: wwwdev.htpasswd.j2
|
||||||
|
dest: /etc/nginx/wwwdev.htpasswd
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: "0o600"
|
1
roles/webapps/templates/wwwdev.htpasswd.j2
Normal file
1
roles/webapps/templates/wwwdev.htpasswd.j2
Normal file
@@ -0,0 +1 @@
|
|||||||
|
editeurs:{{ webapps_htpasswd_editeurs }}
|
Reference in New Issue
Block a user