|
1 | 1 | export TZ=UTC |
2 | 2 | export ENV=LOCAL |
3 | 3 |
|
4 | | -# Server Settngs |
5 | | -export SYNCMASTER__SERVER__DEBUG=true |
6 | | -export SYNCMASTER__SERVER__LOG_URL_TEMPLATE="https://grafana.example.com?correlation_id={{ correlation_id }}&run_id={{ run.id }}" |
7 | | - |
8 | | -# Session |
9 | | -export SYNCMASTER__SERVER__SESSION__SECRET_KEY=session_secret_key |
| 4 | +# Logging options |
| 5 | +export SYNCMASTER__LOGGING__SETUP=True |
| 6 | +export SYNCMASTER__LOGGING__PRESET=colored |
10 | 7 |
|
11 | | -# Postgres |
| 8 | +# Common DB options |
12 | 9 | export SYNCMASTER__DATABASE__URL=postgresql+asyncpg://syncmaster:changeme@localhost:5432/syncmaster |
13 | 10 |
|
14 | | -# RabbitMQ |
15 | | -export SYNCMASTER__BROKER__URL=amqp://guest:guest@localhost:5672/ |
| 11 | +# Encrypt / Decrypt credentials data using this Fernet key. |
| 12 | +# !!! GENERATE YOUR OWN COPY FOR PRODUCTION USAGE !!! |
| 13 | +export SYNCMASTER__ENCRYPTION__SECRET_KEY=UBgPTioFrtH2unlC4XFDiGf5sYfzbdSf_VgiUSaQc94= |
16 | 14 |
|
17 | | -# Logging |
18 | | -export SYNCMASTER__LOGGING__SETUP=True |
19 | | -export SYNCMASTER__LOGGING__PRESET=colored |
| 15 | +# Common RabbitMQ options |
| 16 | +export SYNCMASTER__BROKER__URL=amqp://guest:guest@localhost:5672 |
20 | 17 |
|
21 | | -# Encrypt / Decrypt credentials data |
22 | | -export SYNCMASTER__ENCRYPTION__CRYPTO_KEY=UBgPTioFrtH2unlC4XFDiGf5sYfzbdSf_VgiUSaQc94= |
23 | | - |
24 | | -# Scheduler settings |
25 | | -export SYNCMASTER__SCHEDULER__TRANSFER_FETCHING_TIMEOUT_SECONDS=200 |
| 18 | +# Server options |
| 19 | +export SYNCMASTER__SERVER__SESSION__SECRET_KEY=generate_some_random_string |
| 20 | +export SYNCMASTER__SERVER__LOG_URL_TEMPLATE="https://logs.location.example.com/syncmaster-worker?correlation_id={{ correlation_id }}&run_id={{ run.id }}" |
| 21 | +# !!! NEVER USE ON PRODUCTION !!! |
| 22 | +export SYNCMASTER__SERVER__DEBUG=true |
26 | 23 |
|
27 | | -# Keycloack Auth |
28 | | -export SYNCMASTER__AUTH__KEYCLOAK__SERVER_URL=http://keycloak:8080 |
| 24 | +# Keycloak Auth |
| 25 | +#export SYNCMASTER__AUTH__PROVIDER=syncmaster.server.providers.auth.keycloak_provider.KeycloakAuthProvider |
| 26 | +export SYNCMASTER__AUTH__KEYCLOAK__SERVER_URL=http://localhost:8080 |
29 | 27 | export SYNCMASTER__AUTH__KEYCLOAK__REALM_NAME=manually_created |
30 | 28 | export SYNCMASTER__AUTH__KEYCLOAK__CLIENT_ID=manually_created |
31 | 29 | export SYNCMASTER__AUTH__KEYCLOAK__CLIENT_SECRET=generated_by_keycloak |
32 | 30 | export SYNCMASTER__AUTH__KEYCLOAK__REDIRECT_URI=http://localhost:8000/auth/callback |
33 | 31 | export SYNCMASTER__AUTH__KEYCLOAK__SCOPE=email |
34 | 32 | export SYNCMASTER__AUTH__KEYCLOAK__VERIFY_SSL=False |
35 | | -export SYNCMASTER__AUTH__PROVIDER=syncmaster.server.providers.auth.keycloak_provider.KeycloakAuthProvider |
36 | 33 |
|
37 | 34 | # Dummy Auth |
38 | 35 | export SYNCMASTER__AUTH__PROVIDER=syncmaster.server.providers.auth.dummy_provider.DummyAuthProvider |
39 | | -export SYNCMASTER__AUTH__ACCESS_TOKEN__SECRET_KEY=secret |
| 36 | +export SYNCMASTER__AUTH__ACCESS_TOKEN__SECRET_KEY=generate_another_random_string |
| 37 | + |
| 38 | +# Scheduler options |
| 39 | +export SYNCMASTER__SCHEDULER__TRANSFER_FETCHING_TIMEOUT_SECONDS=200 |
40 | 40 |
|
| 41 | +# Tests-only |
41 | 42 | export TEST_S3_HOST_FOR_CONFTEST=localhost |
42 | 43 | export TEST_S3_PORT_FOR_CONFTEST=9010 |
43 | 44 | export TEST_S3_HOST_FOR_WORKER=test-s3 |
|
0 commit comments