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

Question: Octopus URL system variable #61

Closed
chriseldredge opened this issue Jul 25, 2014 · 2 comments
Closed

Question: Octopus URL system variable #61

chriseldredge opened this issue Jul 25, 2014 · 2 comments

Comments

@chriseldredge
Copy link

Is there a default variable for the canonical URL where the Octopus instance is running?

I have a template where I want to send a link to a deployment task, and I'd like to have some variable like Octopus.Web.BaseUrl that would be equal to something like https://my-octopus.example.com/.

I suppose this would be difficult since by default Octopus allows multiple host headers and ports to be bound to it, but would make life simpler for me.

@chriseldredge
Copy link
Author

I can also require users of my template to specify this themselves, but it would be cleaner if I didn't have to do this.

@nblumhardt
Copy link
Contributor

Hi Chris, thanks for the suggestion. We've had this request a few times already - it's a tricky one for the reasons you mention. In the template scenario though, just exposing our "best guess" would probably do the trick - e.g. Octopus.Web.BaseUrl could be the default parameter value, and users with more complex setups could override the default. It seems fairly straightforward, so I've popped it in: OctopusDeploy/Issues#1177

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

No branches or pull requests

2 participants