diff options
author | MS <ms@taler.net> | 2020-09-11 18:15:08 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-09-11 18:15:08 +0200 |
commit | 07e787292eccc0a46dc1a5ca59e92b2cee82cdb3 (patch) | |
tree | 3c6a257b9ecb740aa08c85ff3cf49349ad487423 /bin/taler_urls.py | |
parent | cc392e99dc44733bb78dec19cc2137841902832b (diff) | |
download | deployment-07e787292eccc0a46dc1a5ca59e92b2cee82cdb3.tar.gz deployment-07e787292eccc0a46dc1a5ca59e92b2cee82cdb3.tar.bz2 deployment-07e787292eccc0a46dc1a5ca59e92b2cee82cdb3.zip |
adapt config to serve via HTTP
Diffstat (limited to 'bin/taler_urls.py')
-rw-r--r-- | bin/taler_urls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/taler_urls.py b/bin/taler_urls.py index caf9a84..6e20003 100644 --- a/bin/taler_urls.py +++ b/bin/taler_urls.py @@ -1,3 +1,5 @@ +from urllib.parse import urlparse + taler_urls = dict( online = dict( donations = "https://donations.{}.taler.net/", @@ -34,4 +36,6 @@ def get_urls(envname): for k, v in taler_urls["online"].items() ) - +def get_port(localhost_url): + parsed = urlparse(localhost_url) + return parsed.port |