[Show and tell] Luigi server behind authentication

118 views
Skip to first unread message

tashri...@gmail.com

unread,
Aug 19, 2021, 11:18:00 AM8/19/21
to Luigi
Hello all,

For a long time, I have been looking for an authentication mechanism to host a public Luigi server. I have figured it out. My Luigi server is running behing Nginx reverse proxy. Upon doing the following, http://my-luigid-server.org/ should be behind a login. Also, you can use that server to run Luigi tasks from the command line.

Inside luigi.cfg:


Inside nginx.conf:
        location / {
            auth_basic "Skeptical Sys Admin";
            auth_basic_user_file /etc/nginx/.luigipasswd;
            proxy_pass http://127.0.0.1:8082;
            proxy_set_header Connection "";
            proxy_http_version 1.1;
        }


How to create /etc/nginx/.luigipasswd:

Let me know if you need any help,
Tashrif
Reply all
Reply to author
Forward
0 new messages