Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
277b5a9f
Commit
277b5a9f
authored
Nov 15, 2019
by
Ivar Derksen
Committed by
Sietse Ringers
Nov 21, 2019
Browse files
Added docs for variable port in --url to --help
parent
cee9d84e
Pipeline
#33676
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
irma/cmd/session.go
View file @
277b5a9f
...
...
@@ -238,7 +238,7 @@ func init() {
flags
:=
sessionCmd
.
Flags
()
flags
.
SortFlags
=
false
flags
.
String
(
"server"
,
""
,
"External IRMA server to post request to (leave blank to use builtin library)"
)
flags
.
StringP
(
"url"
,
"u"
,
defaulturl
,
"external URL to which IRMA app connects (when not using --server)"
)
flags
.
StringP
(
"url"
,
"u"
,
defaulturl
,
"external URL to which IRMA app connects (when not using --server)
,
\"
:port
\"
being replaced by --port value
"
)
flags
.
IntP
(
"port"
,
"p"
,
48680
,
"port to listen at (when not using --server)"
)
flags
.
Bool
(
"noqr"
,
false
,
"Print JSON instead of draw QR"
)
flags
.
StringP
(
"request"
,
"r"
,
""
,
"JSON session request"
)
...
...
server/irmad/cmd/root.go
View file @
277b5a9f
...
...
@@ -108,7 +108,7 @@ func setFlags(cmd *cobra.Command, production bool) error {
flags
.
StringP
(
"privkeys"
,
"k"
,
""
,
"path to IRMA private keys"
)
flags
.
String
(
"static-path"
,
""
,
"Host files under this path as static files (leave empty to disable)"
)
flags
.
String
(
"static-prefix"
,
"/"
,
"Host static files under this URL prefix"
)
flags
.
StringP
(
"url"
,
"u"
,
defaulturl
,
"external URL to server to which the IRMA client connects"
)
flags
.
StringP
(
"url"
,
"u"
,
defaulturl
,
"external URL to server to which the IRMA client connects
,
\"
:port
\"
being replaced by --port value
"
)
flags
.
Bool
(
"sse"
,
false
,
"Enable server sent for status updates (experimental)"
)
flags
.
IntP
(
"port"
,
"p"
,
8088
,
"port at which to listen"
)
...
...
@@ -219,15 +219,15 @@ func configure(cmd *cobra.Command) error {
SchemesUpdateInterval
:
viper
.
GetInt
(
"schemes-update"
),
DisableSchemesUpdate
:
viper
.
GetBool
(
"disable-schemes-update"
)
||
viper
.
GetInt
(
"schemes-update"
)
==
0
,
IssuerPrivateKeysPath
:
viper
.
GetString
(
"privkeys"
),
URL
:
viper
.
GetString
(
"url"
),
DisableTLS
:
viper
.
GetBool
(
"no-tls"
),
Email
:
viper
.
GetString
(
"email"
),
EnableSSE
:
viper
.
GetBool
(
"sse"
),
Verbose
:
viper
.
GetInt
(
"verbose"
),
Quiet
:
viper
.
GetBool
(
"quiet"
),
LogJSON
:
viper
.
GetBool
(
"log-json"
),
Logger
:
logger
,
Production
:
viper
.
GetBool
(
"production"
),
URL
:
viper
.
GetString
(
"url"
),
DisableTLS
:
viper
.
GetBool
(
"no-tls"
),
Email
:
viper
.
GetString
(
"email"
),
EnableSSE
:
viper
.
GetBool
(
"sse"
),
Verbose
:
viper
.
GetInt
(
"verbose"
),
Quiet
:
viper
.
GetBool
(
"quiet"
),
LogJSON
:
viper
.
GetBool
(
"log-json"
),
Logger
:
logger
,
Production
:
viper
.
GetBool
(
"production"
),
},
Permissions
:
requestorserver
.
Permissions
{
Disclosing
:
handlePermission
(
"disclose-perms"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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