Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gts2
gts2_client
Commits
fc3777c4
Commit
fc3777c4
authored
Nov 13, 2018
by
choh
Browse files
Changed default port to https standard (443).
parent
9fe603f2
Pipeline
#3261
passed with stages
in 37 minutes
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
fc3777c4
...
...
@@ -9,6 +9,7 @@ Status
[
Coverage report
](
http://gts2.gitext.gfz-potsdam.de/gts2_client/coverage/
)
## Release notes
*
**2018-11-13:**
Changed default port to 443
*
**2018-02-20:**
Improved output to netCDF file
*
**2018-02-16:**
Added installation information and installation script for miniconda and all needed packages
*
**2018-01-18:**
Added docker file and script for building an compatible image and running a container for the client
...
...
credentials_gts2_client
View file @
fc3777c4
{
"user": "",
"password": "",
"port":
80
"port":
443
}
\ No newline at end of file
docker_gts2_client/build_run_gts2_client_docker.sh
View file @
fc3777c4
...
...
@@ -22,7 +22,7 @@ then
echo
"read"
read
-p
"Please enter GTS2 username: "
username
read
-p
"Please enter GTS2 password: "
password
read
-p
"Please enter GTS2 port (default
80
): "
port
read
-p
"Please enter GTS2 port (default
443
): "
port
cat
>
${
cred_file
}
<<
EOL
{
"user": "
${
username
}
",
...
...
gts2_client/gts2_client.py
View file @
fc3777c4
...
...
@@ -694,7 +694,7 @@ def __get_auth(logger=None):
if
"port"
in
cred_dict
.
keys
():
port
=
cred_dict
[
"port"
]
else
:
port
=
80
port
=
443
auth
=
(
cred_dict
[
"user"
],
cred_dict
[
"password"
])
else
:
logger
.
error
(
"You did not save your credentials in %s."
%
cred_file
)
...
...
@@ -702,7 +702,7 @@ def __get_auth(logger=None):
password
=
input
(
"gts2_client - Please insert password: "
)
port
=
input
(
"gts2_client - Please insert port for API (for default, type 'yes'): "
)
if
port
==
"yes"
:
port
=
"
80
"
port
=
"
443
"
auth
=
(
user
,
password
)
return
{
"auth"
:
auth
,
"port"
:
port
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment