+ latest extensions - deployed nginx, apache, php 74 & 81, nvm, automatic databases import and phpmyadmin with nginx basic auth
+ dhcp dnsmasq server playbook for create inner server network #861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
19
playbooks/own/nginx-auth.yml
Normal file
19
playbooks/own/nginx-auth.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Setup nginx auth scaffolding dirs
|
||||
hosts: [ 'debian10' ]
|
||||
tasks:
|
||||
- shell: |-
|
||||
cd /etc/nginx
|
||||
mkdir -p auth.d passwords.d
|
||||
|
||||
- copy:
|
||||
dest: '/etc/nginx/auth.d/grant-access-certbot.conf'
|
||||
content: |-
|
||||
set $auth_basic Restricted;
|
||||
|
||||
if ($request_uri ~* "well-known") {
|
||||
set $auth_basic off;
|
||||
}
|
||||
|
||||
auth_basic $auth_basic;
|
||||
Reference in New Issue
Block a user