Merge pull request #21 from olegvodyanov/add_nginx_basic_auth
All checks were successful
continuous-integration/drone/push Build is passing

add_nginx_basic_auth
This commit is contained in:
Олег Водянов 2025-04-23 13:12:44 +04:00 committed by GitHub
commit 1b2f86ce39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View File

@ -27,6 +27,7 @@ volumes:
path: /srv/drone-runner
trigger:
branch:
- master
- develop
paths:
include:
- instalinks/
- static/

View File

@ -17,6 +17,9 @@ server {
access_log /var/log/nginx/myinstalink.ru-access.log;
error_log /var/log/nginx/myinstalink.ru-error.log;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/.htpasswd;
location /static/ {
alias /staticFiles/;
}

View File

@ -10,6 +10,7 @@
- virtualenv
- python3-setuptools
- python3-certbot-nginx
- apache2-utils
state: latest
update_cache: true