* Switch server to Granian
Because the development of Nginx Unit has been stopped, switch the server
to Granian which still allows to serve the Python application and the
static files from one server.
* Addressed review comments
* Update docker/launch-netbox.sh
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
* Update docker/launch-netbox.sh
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
---------
Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
Add native support for SSO configuration through environment variables
and Docker secrets, eliminating the need to modify configuration.py
for common SSO providers.
Changes:
- Add OKTA OpenID Connect configuration variables:
- SOCIAL_AUTH_OKTA_OPENIDCONNECT_KEY (env var)
- SOCIAL_AUTH_OKTA_OPENIDCONNECT_SECRET (env var + Docker secret: okta_openidconnect_secret)
- SOCIAL_AUTH_OKTA_OPENIDCONNECT_API_URL (env var)
- Add Google OAuth2 configuration variables:
- SOCIAL_AUTH_GOOGLE_OAUTH2_KEY (env var)
- SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET (env var + Docker secret: google_oauth2_secret)
Follows existing patterns with _read_secret() for sensitive data and
environ.get() for non-sensitive configuration.
Resolves: netbox-community/netbox-docker#1139