🎉(all) bootstrap the Calendars project
This repository was forked from Drive in late December 2025 and boostraped as a minimal demo of backend+caldav server+frontend integration. There is much left to do and to fix!
This commit is contained in:
70
env.d/development/backend.defaults
Normal file
70
env.d/development/backend.defaults
Normal file
@@ -0,0 +1,70 @@
|
||||
# Django
|
||||
DJANGO_ALLOWED_HOSTS=*
|
||||
DJANGO_SECRET_KEY=ThisIsAnExampleKeyForDevPurposeOnly
|
||||
DJANGO_SETTINGS_MODULE=calendars.settings
|
||||
DJANGO_SUPERUSER_PASSWORD=admin
|
||||
|
||||
# Logging
|
||||
# Set to DEBUG level for dev only
|
||||
LOGGING_LEVEL_HANDLERS_CONSOLE=INFO
|
||||
LOGGING_LEVEL_LOGGERS_ROOT=INFO
|
||||
LOGGING_LEVEL_LOGGERS_APP=INFO
|
||||
|
||||
# Python
|
||||
PYTHONPATH=/app
|
||||
|
||||
# Calendar settings
|
||||
|
||||
# Media
|
||||
STORAGES_STATICFILES_BACKEND=django.contrib.staticfiles.storage.StaticFilesStorage
|
||||
MEDIA_BASE_URL=http://localhost:8923
|
||||
|
||||
# OIDC - Keycloak on dedicated port 8925
|
||||
OIDC_OP_JWKS_ENDPOINT=http://keycloak:8080/realms/calendars/protocol/openid-connect/certs
|
||||
OIDC_OP_AUTHORIZATION_ENDPOINT=http://localhost:8925/realms/calendars/protocol/openid-connect/auth
|
||||
OIDC_OP_TOKEN_ENDPOINT=http://keycloak:8080/realms/calendars/protocol/openid-connect/token
|
||||
OIDC_OP_USER_ENDPOINT=http://keycloak:8080/realms/calendars/protocol/openid-connect/userinfo
|
||||
|
||||
OIDC_RP_CLIENT_ID=calendars
|
||||
OIDC_RP_CLIENT_SECRET=ThisIsAnExampleKeyForDevPurposeOnly
|
||||
OIDC_RP_SIGN_ALGO=RS256
|
||||
OIDC_RP_SCOPES="openid email"
|
||||
|
||||
LOGIN_REDIRECT_URL=http://localhost:8920
|
||||
LOGIN_REDIRECT_URL_FAILURE=http://localhost:8920
|
||||
LOGOUT_REDIRECT_URL=http://localhost:8920
|
||||
|
||||
OIDC_REDIRECT_ALLOWED_HOSTS="http://localhost:8923,http://localhost:8920"
|
||||
OIDC_AUTH_REQUEST_EXTRA_PARAMS={"acr_values": "eidas1"}
|
||||
|
||||
# Resource Server Backend
|
||||
OIDC_OP_URL=http://localhost:8925/realms/calendars
|
||||
OIDC_OP_INTROSPECTION_ENDPOINT=http://keycloak:8080/realms/calendars/protocol/openid-connect/token/introspect
|
||||
OIDC_RESOURCE_SERVER_ENABLED=False
|
||||
OIDC_RS_CLIENT_ID=calendars
|
||||
OIDC_RS_CLIENT_SECRET=ThisIsAnExampleKeyForDevPurposeOnly
|
||||
OIDC_RS_AUDIENCE_CLAIM="client_id"
|
||||
OIDC_RS_ALLOWED_AUDIENCES=""
|
||||
|
||||
# DAViCal CalDAV Server
|
||||
DAVICAL_URL=http://davical:80
|
||||
|
||||
# Frontend
|
||||
FRONTEND_THEME=default
|
||||
FRONTEND_MORE_LINK=https://suiteterritoriale.anct.gouv.fr/
|
||||
FRONTEND_FEEDBACK_BUTTON_SHOW=True
|
||||
FRONTEND_FEEDBACK_BUTTON_IDLE=False
|
||||
FRONTEND_FEEDBACK_ITEMS={}
|
||||
FRONTEND_FEEDBACK_MESSAGES_WIDGET_ENABLED=False
|
||||
FRONTEND_FEEDBACK_MESSAGES_WIDGET_API_URL=
|
||||
FRONTEND_FEEDBACK_MESSAGES_WIDGET_CHANNEL=
|
||||
FRONTEND_FEEDBACK_MESSAGES_WIDGET_PATH=
|
||||
|
||||
# Indexer
|
||||
|
||||
# Store OIDC tokens in the session
|
||||
# OIDC_STORE_ACCESS_TOKEN = True
|
||||
# OIDC_STORE_REFRESH_TOKEN = True # Store the encrypted refresh token in the session.
|
||||
# Must be a valid Fernet key (32 url-safe base64-encoded bytes)
|
||||
# To create one, use the bin/fernetkey command.
|
||||
# OIDC_STORE_REFRESH_TOKEN_KEY="your-32-byte-encryption-key=="
|
||||
0
env.d/development/crowdin.defaults
Normal file
0
env.d/development/crowdin.defaults
Normal file
13
env.d/development/davical.defaults
Normal file
13
env.d/development/davical.defaults
Normal file
@@ -0,0 +1,13 @@
|
||||
PGHOST=postgresql
|
||||
PGPORT=5432
|
||||
PGDATABASE=calendars
|
||||
PGUSER=pgroot
|
||||
PGPASSWORD=pass
|
||||
ROOT_PGUSER=pgroot
|
||||
ROOT_PGPASSWORD=pass
|
||||
DBA_PGUSER=pgroot
|
||||
DBA_PGPASSWORD=pass
|
||||
DAVICAL_ADMIN_PASS=admin
|
||||
HOST_NAME=localhost
|
||||
ADMIN_EMAIL=admin@example.com
|
||||
TZ=UTC
|
||||
2
env.d/development/frontend.defaults
Normal file
2
env.d/development/frontend.defaults
Normal file
@@ -0,0 +1,2 @@
|
||||
NEXT_PUBLIC_API_ORIGIN=http://localhost:8921
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
13
env.d/development/keycloak.defaults
Normal file
13
env.d/development/keycloak.defaults
Normal file
@@ -0,0 +1,13 @@
|
||||
KC_BOOTSTRAP_ADMIN_USERNAME=admin
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD=admin
|
||||
KC_DB=postgres
|
||||
KC_DB_URL_HOST=postgresql
|
||||
KC_DB_URL_DATABASE=calendars
|
||||
KC_DB_PASSWORD=pass
|
||||
KC_DB_USERNAME=pgroot
|
||||
KC_DB_SCHEMA=public
|
||||
KC_HOSTNAME_STRICT=false
|
||||
KC_HOSTNAME_STRICT_HTTPS=false
|
||||
KC_HTTP_ENABLED=true
|
||||
KC_HEALTH_ENABLED=true
|
||||
PROXY_ADDRESS_FORWARDING=true
|
||||
4
env.d/development/postgresql.defaults
Normal file
4
env.d/development/postgresql.defaults
Normal file
@@ -0,0 +1,4 @@
|
||||
# Postgresql db container configuration
|
||||
POSTGRES_DB=calendars
|
||||
POSTGRES_USER=pgroot
|
||||
POSTGRES_PASSWORD=pass
|
||||
11
env.d/development/postgresql.e2e
Normal file
11
env.d/development/postgresql.e2e
Normal file
@@ -0,0 +1,11 @@
|
||||
# Postgresql db container configuration
|
||||
POSTGRES_DB=calendar_e2e
|
||||
POSTGRES_USER=pgroot
|
||||
POSTGRES_PASSWORD=pass
|
||||
|
||||
# App database configuration
|
||||
DB_HOST=postgresql
|
||||
DB_NAME=calendar_e2e
|
||||
DB_USER=pgroot
|
||||
DB_PASSWORD=pass
|
||||
DB_PORT=5432
|
||||
Reference in New Issue
Block a user