From d2c63de37b0205dcd6f5e74b05230fdb7f30f9a4 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 19 Jan 2024 12:20:50 +0100 Subject: [PATCH] more bugfix namespace problm and pangeapilot files --- .env.example | 77 +++++++++++++++ .gitignore | 4 +- Makefile | 19 +++- docker-compose__pilot-lafede.yml | 1 - docker-compose__pilot-pangea.yml | 159 +++++++++++++++++++++++++++++++ docker-compose__pilot-setem.yml | 2 - docker-compose__pilot-xo9b.yml | 2 - 7 files changed, 255 insertions(+), 9 deletions(-) create mode 100644 docker-compose__pilot-pangea.yml diff --git a/.env.example b/.env.example index fcf9230..344e158 100644 --- a/.env.example +++ b/.env.example @@ -10,6 +10,58 @@ # specially useful if you want to deploy in a specific domain #MUSICIAN_API_BASE_URL='https://orchestra.example.org' #MUSICIAN_ALLOWED_HOSTS='musician.example.org' + +# DEVICEHUB +#### + +# Please fill in these three variables +DEVICEHUB_API_DLT='http://$FIXME_IP_API_DLT' +DEVICEHUB_API_DLT_TOKEN=$FIXME_TOKEN +DEVICEHUB_API_RESOLVER='http://$FIXME_IP_API_RESOLVER' +# you might change or register ID_FEDERATED if you change DEVICEHUB_HOST +DEVICEHUB_ID_FEDERATED='DH12' +# TODO this should be guessed by DEVICEHUB_HOST, and avoid hardcode of ID_FEDERATED +DEVICEHUB_SERVER_ID_FEDERATED='DH12' +DEVICEHUB_CLIENT_ID_FEDERATED='DH20' + +# Database Variables +DEVICEHUB_DB_USER='dhub' +DEVICEHUB_DB_PASSWORD='ereuse' +DEVICEHUB_DB_HOST='localhost' +DEVICEHUB_DB_DATABASE='dpp' +DEVICEHUB_SCHEMA='dbtest' +DEVICEHUB_DB_SCHEMA='dbtest' + +#DEVICEHUB_SERVER_ID_DEVICEHUB_HOST='http://devicehub-server-id.example.com' +DEVICEHUB_SERVER_ID_DEVICEHUB_HOST='http://localhost:5000' +#DEVICEHUB_CLIENT_ID_DEVICEHUB_HOST='http://devicehub-client-id.example.com' +DEVICEHUB_CLIENT_ID_DEVICEHUB_HOST='http://localhost:5001' +DEVICEHUB_SERVER_ID_SERVICE='server_id' +DEVICEHUB_CLIENT_ID_SERVICE='client_id' +DEVICEHUB_HOST='localhost' + +DEVICEHUB_EMAIL_DEMO='user@example.com' +DEVICEHUB_SERVER_ID_EMAIL_DEMO='user5000@example.com' +DEVICEHUB_CLIENT_ID_EMAIL_DEMO='user5001@example.com' +DEVICEHUB_PASSWORD_DEMO='1234' + +DEVICEHUB_JWT_PASS='uncomment-it-and-fill-this' +DEVICEHUB_SECRET_KEY='uncomment-it-and-fill-this' + +# important to import snapshots (step 15) +# rel path starts with ./ +DEVICEHUB_SNAPSHOTS_PATH='./examples/snapshots' +# full path starts with / +#DEVICEHUB_SNAPSHOTS_PATH='/tmp/dhub_docker/snapshots' +DEVICEHUB_IMPORT_SNAPSHOTS='n' + +# If you have a URL_MANUALS implementation, please change this url +DEVICEHUB_URL_MANUALS='http://localhost:4000' + +# on devicehub without dpp case, uncomment for a production deployment. +# That is, use of gunicorn instead of a debug python server +#DEVICEHUB_DEPLOYMENT='PROD' + # IDHUB #### @@ -17,6 +69,7 @@ IDHUB_TIME_ZONE='Europe/Madrid' #IDHUB_SECRET_KEY='uncomment-it-and-fill-this' # enable dev flags when DEVELOPMENT deployment IDHUB_DEPLOYMENT='DEVELOPMENT' +#IDHUB_DEPLOYMENT='PROD' # adapt to your domain in a production/reverse proxy env IDHUB_CSRF_TRUSTED_ORIGINS='https://idhub.example.org' @@ -34,3 +87,27 @@ IDHUB_EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend" IDHUB_USER='admin' IDHUB_PASSWD='admin' IDHUB_EMAIL='admin@example.org' + +# AUTHENTIK aka goauthentik +#### + +AUTHENTIK_PG_PASS=goauthentik +AUTHENTIK_PG_USER=goauthentik +AUTHENTIK_PG_DB=goauthentik +AUTHENTIK_SECRET_KEY=fixme_EMeeeT-$DEzm{4%=qo2L8!A=b3H-8HV>ycCs2vP+C + +# SMTP Host Emails are sent to +AUTHENTIK_EMAIL__HOST='smtp.pangea.org' +AUTHENTIK_EMAIL__PORT=587 +# Optionally authenticate (don't add quotation marks to your password) +AUTHENTIK_EMAIL__USERNAME='fixme_H6v