-
Notifications
You must be signed in to change notification settings - Fork 6
Document LYO_BASEURL for custom base URL configuration #491
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
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -161,6 +161,34 @@ After that, OSLC servers are available at the following URLs: | |||||
| - http://localhost:8802/services/catalog/singleton | ||||||
| - http://localhost:8803/services/catalog/singleton | ||||||
|
|
||||||
| ### Configuring Base URLs | ||||||
|
|
||||||
| By default, the servers use `http://localhost:8080` as the base URL. You can override this using the `LYO_BASEURL` environment variable to configure the public-facing URL for each server. This is particularly useful when: | ||||||
| - Running behind a reverse proxy | ||||||
| - Deploying to a cloud environment with a custom domain | ||||||
| - Using non-standard ports or HTTPS | ||||||
|
|
||||||
| **Examples:** | ||||||
|
|
||||||
| For a reverse proxy deployment where the RM server is accessible at `https://mytoolchain.example.com:9443/refimpl/rm/`: | ||||||
| ```bash | ||||||
| export LYO_BASEURL=https://mytoolchain.example.com:9443/refimpl/rm | ||||||
| ``` | ||||||
|
Comment on lines
+173
to
+176
|
||||||
|
|
||||||
| When using Docker Compose, set environment variables for each service: | ||||||
| ```yaml | ||||||
| services: | ||||||
| server-rm: | ||||||
| environment: | ||||||
| - LYO_BASEURL=https://mytoolchain.example.com:9443/refimpl/rm | ||||||
| ``` | ||||||
|
|
||||||
| See the commented examples in `docker-compose.yml` for more details. | ||||||
|
||||||
| See the commented examples in `docker-compose.yml` for more details. | |
| See the commented examples in `docker-compose.yml` and `docker-compose.tomcat.yml` for more details. |
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.
The new section says the servers use
http://localhost:8080as the base URL by default, but immediately above you document the servers as being available onhttp://localhost:8800..8803. SinceLYO_BASEURLaffects the advertised/public URIs in rootservices and generated links (not reachability), consider rewording this to explicitly call out the difference (container internal port 8080 vs published host ports 880x) and optionally mention that settingLYO_BASEURLtohttp://localhost:8800etc. aligns the advertised URLs when using Docker Compose.