No longer needed, the admin zone has a password.
This commit is contained in:
parent
4c085f551f
commit
96b259631e
22
afpy.org.yml
22
afpy.org.yml
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue