config
stac_fastapi.pgstac.config ¶
Postgres API configuration.
PostgresSettings ¶
Bases: BaseSettings
Postgres-specific API settings.
Attributes:
-
postgres_user
(str
) –postgres username.
-
postgres_pass
(str
) –postgres password.
-
postgres_host_reader
(str
) –hostname for the reader connection.
-
postgres_host_writer
(str
) –hostname for the writer connection.
-
postgres_port
(int
) –database port.
-
postgres_dbname
(str
) –database name.
-
use_api_hydrate
(str
) –perform hydration of stac items within stac-fastapi.
-
invalid_id_chars
(str
) –list of characters that are not allowed in item or collection ids.
Source code in stac_fastapi/pgstac/config.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
ServerSettings ¶
Bases: BaseModel
Server runtime parameters.
Attributes:
-
search_path
(str
) –Postgres search path. Defaults to "pgstac,public".
-
application_name
(str
) –PgSTAC Application name. Defaults to 'pgstac'.
Source code in stac_fastapi/pgstac/config.py
37 38 39 40 41 42 43 44 45 46 47 48 |
|
Settings ¶
Bases: ApiSettings
Api Settings.
Source code in stac_fastapi/pgstac/config.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
parse_cors_methods ¶
parse_cors_methods(v)
Parse CORS methods.
Source code in stac_fastapi/pgstac/config.py
114 115 116 117 |
|
parse_cors_origin ¶
parse_cors_origin(v)
Parse CORS origins.
Source code in stac_fastapi/pgstac/config.py
109 110 111 112 |
|