Giter VIP home page Giter VIP logo

docker-nginx-auth-request-django-shiny-example's Introduction

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.

docker-nginx-auth-request-django-shiny-example's People

Contributors

dependabot[bot] avatar juleskuehn avatar pawamoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-nginx-auth-request-django-shiny-example's Issues

Unable to Make All

Hi,
I have cloned the repo and tried building the whole package without any luck.
I attach a picture of the error message. I tried troubleshooting some of these but nothing changed.
I am using GNU Make 3.81, Docker version 20.10.22, build 3a2c30b, Docker Compose version v2.15.1 On a Mac, macOS 12.5.1 Intel.
Let me know if you need anything else from me, I'll be happy to keep the conversation open.

`Reading package lists...
W: GPG error: https://deb.nodesource.com trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python
python-minimal python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib nodejs python
python-minimal python2.7 python2.7-minimal
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 17.8 MB of archives.
After this operation, 86.5 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
nodejs
E: There are problems and -y was used without --force-yes
/bin/sh: 1: npm: not found
/bin/sh: 1: npm: not found
1 error occurred:
* Status: The command '/bin/sh -c apt-get update; apt-get install -y curl; curl -sL https://deb.nodesource.com/setup_8.x | bash -; apt-get install -y nodejs; npm update -g npm; npm install -g yarn;' returned a non-zero code: 127, Code: 127`

Problems when I make all

Excuse me,I git clone it ,and I have installed the Docker and Docker-Compose also,but when I make all ,some errors occurred,could you help me to solve it?Thank you!
$ make all
Creating network "docker-django-shiny_default" with the default driver
ERROR: 404 page not found
make: *** [dev-yarn] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.