Skip to content

Commit a7bddd7

Browse files
committed
feat: update default ports for SITE_UI_URL and SITE_API_URL
* The configuration defaults now include the port for both URLs. * Ensure proper access to the site and API endpoints.
1 parent ba43827 commit a7bddd7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/releases/vNext/upgrade-vNext.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,16 @@ If you've customized any of these vocabularies for your instance, you'll need to
475475
476476
### Required changes
477477
478+
When running `invenio-cli run` with `--host`/`--port` passed on the command line or host/port defined in `.invenio.private`, it used to be that those values would override `SITE_UI_URL` and `SITE_API_URL`. This is no longer the case in order to allow for listening on a host/port (defined by passed host and port) different than the host/port used to generate the URLs. This is a common situation when listening on 0.0.0.0 and using the exact IP or fully qualified domain name for URL generation. As such you need to provide the appropriate `SITE_UI_URL` and `SITE_API_URL` values for your environment which typically means:
479+
480+
```diff
481+
-SITE_UI_URL = "https://127.0.0.1"
482+
+SITE_UI_URL = "https://127.0.0.1:5000"
483+
484+
-SITE_API_URL = "https://127.0.0.1/api"
485+
+SITE_API_URL = "https://127.0.0.1:5000/api"
486+
```
487+
478488
#### Overridable IDs in the deposit form
479489
480490
To improve consistency in naming conventions and structure, some IDs of Overridables in the deposit form have been modified. If you are overriding any of these components, you will need to change the ID in your mapping file to reflect these modifications.

0 commit comments

Comments
 (0)