-
Notifications
You must be signed in to change notification settings - Fork 4
jir-ogc #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jir-ogc #559
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,11 +43,6 @@ jobs: | |||||
| CLOUD_SQL_INSTANCE_NAME: "${{ secrets.CLOUD_SQL_INSTANCE_NAME }}" | ||||||
| CLOUD_SQL_DATABASE: "${{ vars.CLOUD_SQL_DATABASE }}" | ||||||
| CLOUD_SQL_USER: "${{ secrets.CLOUD_SQL_USER }}" | ||||||
| PYGEOAPI_POSTGRES_DB: "${{ vars.CLOUD_SQL_DATABASE }}" | ||||||
| PYGEOAPI_POSTGRES_USER: "${{ secrets.PYGEOAPI_POSTGRES_USER }}" | ||||||
| PYGEOAPI_POSTGRES_HOST: "${{ vars.PYGEOAPI_POSTGRES_HOST || '127.0.0.1' }}" | ||||||
| PYGEOAPI_POSTGRES_PORT: "${{ vars.PYGEOAPI_POSTGRES_PORT || '5432' }}" | ||||||
| PYGEOAPI_POSTGRES_PASSWORD: "${{ secrets.PYGEOAPI_POSTGRES_PASSWORD }}" | ||||||
| CLOUD_SQL_IAM_AUTH: true | ||||||
| run: | | ||||||
| uv run alembic upgrade head | ||||||
|
|
@@ -77,6 +72,7 @@ jobs: | |||||
| PYGEOAPI_POSTGRES_HOST: "${{ vars.PYGEOAPI_POSTGRES_HOST || '127.0.0.1' }}" | ||||||
| PYGEOAPI_POSTGRES_PORT: "${{ vars.PYGEOAPI_POSTGRES_PORT || '5432' }}" | ||||||
| PYGEOAPI_POSTGRES_PASSWORD: "${{ secrets.PYGEOAPI_POSTGRES_PASSWORD }}" | ||||||
| PYGEOAPI_SERVER_URL: "${{ vars.PYGEOAPI_SERVER_URL }}" | ||||||
|
||||||
| PYGEOAPI_SERVER_URL: "${{ vars.PYGEOAPI_SERVER_URL }}" | |
| PYGEOAPI_SERVER_URL: "${{ format('{0}{1}', vars.PYGEOAPI_SERVER_URL, vars.PYGEOAPI_MOUNT_PATH || '/ogcapi') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PYGEOAPI_SERVER_URLis used verbatim bycore/pygeoapi.py(it only strips trailing slashes) and the default includes the mount path (/ogcapi). If the GitHub env var is set to just the site root (e.g.,https://example.com), the generated OpenAPIserversURL will likely be missing the mount path. Consider enforcing/clarifying that this value must include the mount path (or adjust the app logic to appendPYGEOAPI_MOUNT_PATHwhen present).