: config wwwdev

This commit is contained in:
VC
2024-09-12 23:47:32 +02:00
parent 551ec8fb95
commit 5c0a03093a
5 changed files with 24 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ server {
root /srv/http/wwwdev.nintendojo.fr/;
index index.html index.htm index.php;
auth_basic "Restricted Area";
auth_basic_user_file /etc/nginx/wwwdev.htpasswd;
client_max_body_size 2G;

View File

@@ -9,6 +9,9 @@
- name: WP for NintendojoFR
ansible.builtin.include_tasks: wp_dojo.yml
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
ansible.builtin.include_tasks: oolatoocs.yml
when: inventory_hostname in groups['mastodonservers']

View 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"

View File

@@ -0,0 +1 @@
editeurs:{{ webapps_htpasswd_editeurs }}