Skip to content

Commit 70da2f4

Browse files
committed
YAML inline comments; mv CORS_ORIGINS up to auth section
1 parent 0e3e610 commit 70da2f4

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

config.template.yaml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,36 @@ RSA_PRIVATE_PEM_STRING: |
3838
#8DqGvGpLkZkwbtcDmcX1zQoHjUo7RvoShZoapr59ihfrkiiEsXOkuGw=
3939
#-----END RSA PRIVATE KEY-----
4040
41-
# Host or url of the instance of Hyperion
42-
# This url will be especially used for oidc/oauth2 discovery endpoint and links send by email
43-
# NOTE: A trailing / is required
44-
CLIENT_URL: http://127.0.0.1:8000/
41+
# Host or URL of the instance of Hyperion
42+
# This url will be especially used for OIDC/OAuth2 discovery endpoint and links send by email
43+
CLIENT_URL: http://127.0.0.1:8000/ # NOTE: A trailing / is required
4544

4645
# Sometimes, when running third services with oidc inside Docker containers, and running Hyperion on your local device
4746
# you may need to use a different url for call made from docker and call made from your device
4847
# For exemple:
49-
# you will access the login page from your browser http://localhost:8000/auth/authorize
50-
# but the docker container should call http://host.docker.internal:8000/auth/token and not your localhost address
51-
# NOTE: A trailing / is required
52-
#OVERRIDDEN_CLIENT_URL_FOR_OIDC: "http://host.docker.internal:8000/"
48+
# - you will access the login page from your browser http://localhost:8000/auth/authorize
49+
# - but the docker container should call http://host.docker.internal:8000/auth/token and not your localhost address
50+
#OVERRIDDEN_CLIENT_URL_FOR_OIDC: "http://host.docker.internal:8000/" # NOTE: A trailing / is required
5351

5452
# Configure AuthClients, to allow services to authenticate users using OAuth2 or Openid connect
5553
# The following format should be used in yaml config files:
54+
# Origins for the CORS middleware. `["http://localhost:3000"]` can be used for development.
55+
# See https://fastapi.tiangolo.com/tutorial/cors/
56+
# It should begin with 'http://' or 'https:// and should never end with a '/'
57+
CORS_ORIGINS:
58+
- "*" # For a local instance, using a wildcard "*" is convenient
59+
# - http://localhost:3000
60+
# - http://127.0.0.1:3000
5661
# ```yml
5762
# AUTH_CLIENTS:
5863
# <ClientId>:
59-
# secret: <ClientSecret>
64+
# secret: <ClientSecret> (or <null> to use PKCE instead of a client secret)
6065
# redirect_uri:
6166
# - <RedirectUri1>
6267
# - <RedirectUri2>
6368
# auth_client: <AuthClientClassName>
6469
# ```
6570
# `AuthClientClassName` should be a class from `app.utils.auth.providers`
66-
# `secret` may be omitted to use PKCE instead of a client secret
6771
AUTH_CLIENTS:
6872
Titan:
6973
secret:
@@ -84,20 +88,9 @@ AUTH_CLIENTS:
8488
# Hyperion settings #
8589
#####################
8690

87-
# Origins for the CORS middleware. `["http://localhost:3000"]` can be used for development.
88-
# See https://fastapi.tiangolo.com/tutorial/cors/
89-
# It should begin with 'http://' or 'https:// and should never end with a '/'
90-
# For a local instance, using a wildcard "*" is convenient
91-
CORS_ORIGINS:
92-
- "*"
93-
# - http://localhost:3000
94-
# - http://127.0.0.1:3000
95-
91+
SQLITE_DB: app.db # If set, the application use a SQLite database instead of PostgreSQL, for testing or development purposes (if possible PostgreSQL should be used instead)
92+
DATABASE_DEBUG: False # If True, will print all SQL queries in the console
9693
LOG_DEBUG_MESSAGES: False
97-
# If set, the application use a SQLite database instead of PostgreSQL, for testing or development purposes (if possible PostgreSQL should be used instead)
98-
SQLITE_DB: app.db
99-
# If True, will print all SQL queries in the console
100-
DATABASE_DEBUG: False
10194
# if True and the database is empty, it will be seeded with mocked data
10295
USE_FACTORIES: True
10396

0 commit comments

Comments
 (0)