TLJH plugins with GoogleAuth and environmental variables

Hello,

I wrote TLJH plugins to customize JupyterHub, especially the login part. There I am using Google OAuth. I wanted to test it all locally using docker TLJH. To pass Google auth id & security, I am using env variables, but they cannot be accessed inside the tljh_custom_jupyterhub_config method, as os.environ always returns None even though env variables are set correctly (I checked it multiple times).

TLJH runs JupyterHub under Systemd, which doesn’t pass external environment variables to the service. You’ll need to set them in a Systemd overrides file instead: