Тёмный

Datalens authentification with Nginx-basic-auth 

Леонид Шаблий
Подписаться 33
Просмотров 139
50% 1

Installation on WSL2 Ubuntu 20 (under Windows 10 with Docker Desktop 24):
1. Install the Open Source DataLens: datalens.tech
2. Install the Docker-nginx-basic-auth container (for example) from github.com/beevelop/docker-ng...
2.1. Update the user-password list using the HTPASSWD variable: either via the docker-compose.yml file, the the command line, or by directly editing the auth.htpasswd file
2.2. Add the Logout-block to the nginx.conf file using the sub_filter and location directives. In this case, you would add the following code: sub_filter 'old tag' 'new tag'; location /logout { return 401; }
2.3. If needed, add an SSL-certificate, and switch the listening port from 80 (HTTP) to 443 (HTTPS). In this case, add the http-https return rule.
2.4. Commit the modified container to your docker image
3. Optionally, turn off the 808x-ports exposition and add the nginx-basic-auth service to your docker-compose file
Варианты авторизации Datalens Open Source:
1. Authelia + traefik-proxy + Small Step CA
authelia.com/
doc.traefik.io/traefik
smallstep.com/certificates/in...
Yandex DataLens Festival 2023, 11 декабря 2023, тема 1, урок 2.
practicum.yandex.ru/trainer/d...
• DataLens Open Source. ...
2. Nginx Basic Auth:
losst.pro/nastrojka-auth-basi...
github.com/beevelop/docker-ng...
hackware.ru/?p=12982
3. Nginx LDAP Auth:
winitpro.ru/index.php/2021/03...
github.com/nginxinc/nginx-lda...
www.nginx.com/blog/nginx-plus...
habr.com/ru/articles/456894/
www.umgum.com/e54dd/
4. Caddy Security: github.com/greenpau/caddy-sec...
5. KeyCloak: github.com/keycloak/keycloak
00:00:10 Варианты авторизации Datalens Open Source
00:01:05 Структура контейнеров и портов
00:02:30 Описание настройки Nginx Basic Authentification
00:03:20 Запуск контейнера nginx-basic-auth
00:08:20 Изменение списка логинов/паролей
00:13:08 Закрытие портов 8080, 8081, 8082, 8083
00:14:30 Добавление сервиса nginx-basic-auth в файл docker-compose
00:20:35 Добавление Log-out через sub_filter и return 401
00:26:26 Сохранение настроенного образа docker
00:29:49 Добавление SSL-сертификата, переход на протокол HTTPS

Опубликовано:

 

12 мар 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Arigato !! 😂
00:11
Просмотров 2,7 млн
Запуск Nginx в контейнере Docker
20:55