Skip to content
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

Add browse_server setting, allows for separate api/web client endpoints. #613

Merged
merged 2 commits into from May 6, 2023

Conversation

markhatch
Copy link
Contributor

@markhatch markhatch commented May 2, 2023

At my company, the on-prem installation has a different API endpoint from the web client endpoint.
This change allows "browse" URLs to point to a different base URL.

#604

API server: jira-api.example.com
UI server: jira.example.com

Changes:
Consolidate all browse URLs to use common GenerateServerBrowseURL function.
Add viper config option browse_server to be able to modify the generated browse URLs.

Tested by adding browse_server to ~/.config/.jira/.config.yml

… function

* Add viper config option `browse_server` to be able to modify the generated `browse` URLs
* This is useful if the API endpoint is different from the web client
@markhatch markhatch marked this pull request as draft May 2, 2023 04:25
@markhatch markhatch marked this pull request as ready for review May 2, 2023 04:26
Copy link
Owner

@ankitpokhrel ankitpokhrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great, thank you @markhatch 🎉

@ankitpokhrel ankitpokhrel merged commit d5f7181 into ankitpokhrel:main May 6, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants