About Conditional Authentication with Nginx
For the staging website you can conditionally require authentication based on the user agent. Here is an example of nginx settings:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
This allows the website to be accessed by Facebook, Twitter, and Google logins, also by Python requests, and WeasyPrint library, but requires authentication for all other requests.
Tips and Tricks Programming Dev Ops Architecture nginx WeasyPrint
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.