mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 05:47:03 +03:00
add_nginx_basic_auth
This commit is contained in:
parent
a513641c38
commit
e96be5f6f7
@ -27,5 +27,7 @@ volumes:
|
|||||||
path: /srv/drone-runner
|
path: /srv/drone-runner
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
paths:
|
||||||
- master
|
include:
|
||||||
|
- instalinks/
|
||||||
|
- static/
|
||||||
|
|||||||
@ -17,6 +17,9 @@ server {
|
|||||||
access_log /var/log/nginx/myinstalink.ru-access.log;
|
access_log /var/log/nginx/myinstalink.ru-access.log;
|
||||||
error_log /var/log/nginx/myinstalink.ru-error.log;
|
error_log /var/log/nginx/myinstalink.ru-error.log;
|
||||||
|
|
||||||
|
auth_basic "Restricted Access";
|
||||||
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /staticFiles/;
|
alias /staticFiles/;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
- virtualenv
|
- virtualenv
|
||||||
- python3-setuptools
|
- python3-setuptools
|
||||||
- python3-certbot-nginx
|
- python3-certbot-nginx
|
||||||
|
- apache2-utils
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user