mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
add setup options to provider docs
* Add a first description of the config options for csaf_provider.
* Change option name from `domain` to `canonical_prefix_url`
to make the usage more intuitively. Use`https` in the default,
if unset.
resolve #32
Co-authored-by: Bernhard E. Reiter <bernhard@intevation.de>
Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
This commit is contained in:
parent
4fae2ec627
commit
5e1f2092e8
5 changed files with 47 additions and 14 deletions
|
|
@ -95,7 +95,7 @@ func createSecurity(c *config, wellknown string) error {
|
|||
}
|
||||
fmt.Fprintf(
|
||||
f, "CSAF: %s/.well-known/csaf/provider-metadata.json\n",
|
||||
c.Domain)
|
||||
c.CanonicalURLPrefix)
|
||||
return f.Close()
|
||||
}
|
||||
return err
|
||||
|
|
@ -113,7 +113,7 @@ func createProviderMetadata(c *config, wellknownCSAF string) error {
|
|||
if !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
pm := csaf.NewProviderMetadataDomain(c.Domain, c.modelTLPs())
|
||||
pm := csaf.NewProviderMetadataDomain(c.CanonicalURLPrefix, c.modelTLPs())
|
||||
pm.Publisher = c.Publisher
|
||||
|
||||
// Set OpenPGP key.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue