No longer needed, the admin zone has a password.

This commit is contained in:
Julien Palard 2023-05-07 15:30:30 +02:00
parent 4c085f551f
commit 96b259631e
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 1 additions and 21 deletions

View File

@ -20,20 +20,7 @@
- name: Install requirements
apt:
state: present
name: [nginx, python3-passlib, sudo] # passlib to generate htpasswd
- name: Generate AFPy admin htpasswd
htpasswd:
path: "/etc/nginx/afpy.org.htpasswd"
name: "{{ item.username }}"
password: "{{ item.password }}"
owner: root
group: www-data
mode: 0640
loop: "{{ afpy_org_admins }}"
loop_control:
label: "{{ item.username }}"
notify: reload nginx
name: [nginx, sudo]
- name: Setup afpy.org
include_role: name=nginx
@ -102,13 +89,6 @@
return 301 https://discuss.afpy.org/c/emplois.rss;
}
location /admin/ {
auth_basic "Administration";
auth_basic_user_file afpy.org.htpasswd;
include proxy_params;
proxy_pass http://unix:/run/afpy-org/website.sock;
}
location ~ ^/doc/python/(.*)$ {return 301 https://docs.python.org/fr/$1;}
location = /logo.png { return 301 https://www.afpy.org/static/images/logo.svg; }
location = /posts/emplois { return 301 https://www.afpy.org/emplois; }