Skip to content
Snippets Groups Projects
Commit 9aad512d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

deduce URL from environment, not configuration

parent 28d92473
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
# Token validity period, in hours # Token validity period, in hours
tokens_validity_period = 2 tokens_validity_period = 2
[app] [app]
url = https://my.fqdn/accountmanager
support_email = support@my.fqdn support_email = support@my.fqdn
[setup] [setup]
......
...@@ -128,7 +128,7 @@ sub respond { ...@@ -128,7 +128,7 @@ sub respond {
my ($self, %in) = @_; my ($self, %in) = @_;
$in{data}->{app} = { $in{data}->{app} = {
url => $self->{configuration}->{app}->{url}, url => $ENV{SCRIPT_NAME},
support_email => $self->{configuration}->{app}->{support_email}, support_email => $self->{configuration}->{app}->{support_email},
version => $version, version => $version,
}; };
......
...@@ -12,5 +12,5 @@ access own services.</p> ...@@ -12,5 +12,5 @@ access own services.</p>
<h2>Getting started</h2> <h2>Getting started</h2>
<p>To start testing your own services, start by selecting one your are administrator for.</p> <p>To start testing your own services, start by selecting one your are administrator for.</p>
<p class="text-center"><a href="?action=select_sp" class="button">Get started</a></p> <p class="text-center"><a href="[% app.url %]?action=select_sp" class="button">Get started</a></p>
...@@ -12,5 +12,5 @@ comptes de test ne peuvent être utilisés qu'avec ce service.</p> ...@@ -12,5 +12,5 @@ comptes de test ne peuvent être utilisés qu'avec ce service.</p>
<h2>Commencer</h2> <h2>Commencer</h2>
<p>Pour commencer à tester vos propres services, commencez par en sélectionner un dont vous êtes l'administrateur.</p> <p>Pour commencer à tester vos propres services, commencez par en sélectionner un dont vous êtes l'administrateur.</p>
<p class="text-center"><a href="?action=select_sp" class="button">Commencer</a></p> <p class="text-center"><a href="[% app.url %]?action=select_sp" class="button">Commencer</a></p>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment