Is it possible to use current stash instance hostname in stash-config.properties?

Alexey_Efimov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2013

Is there any ways to use stash host name within stash-conflig.properties?

For example:

my.config.property=${stash.host.name}/blablabla

1 answer

1 accepted

1 vote
Answer accepted
seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2013

No, it's not. You should always be using the current request for determining the hostname, or the base url if you are not in a request.

Why do you want to do this?

Alexey_Efimov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2013

Some non standard using of Avatars in our company. I setup local nginx cache, what will proxy avatar throught itself and delegate to internal avatar http service, or to Gravatar with hiden Referer header.

But you are right, we must simple setup something more right, what this temporary solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events