pawamoy / docker-nginx-auth-request-django-shiny-example

Example using Docker, Nginx with auth-request module, and Django acting as a authentication wrapper around a Shiny app.

Repository from Github https://github.compawamoy/docker-nginx-auth-request-django-shiny-exampleRepository from Github https://github.compawamoy/docker-nginx-auth-request-django-shiny-example

Docker example with NginX + Auth-Request module proxying to auth-acting Django server for Shiny app

This is a Docker setup for a Django application acting as an authentication and authorization server for a Shiny application, through the NginX reverse-proxy and auth-request module.

  • We use NginX as reverse proxy.
  • We use auth-request module to add an authorization step for each request directed to Shiny.
  • The initial Shiny application main page is wrapped into a Django-powered page, so we can build an interface above Shiny, with user and access rights management.

A Makefile is available for convenience. You might need to use sudo make instead of just make because docker and docker-compose commands often needs admin privilege.

Requirements

You need to install Docker and Docker-Compose.

Build

sudo make all.

Run

sudo make up.

Help

make or make help.

Related blog post

Django application as an authentication / authorization server for Shiny

License

Software licensed under the ISC license.

About

Example using Docker, Nginx with auth-request module, and Django acting as a authentication wrapper around a Shiny app.

License:ISC License


Languages

Language:Python 43.2%Language:HTML 36.4%Language:Makefile 11.7%Language:R 7.9%Language:CSS 0.9%