mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Change default port for secvisogram (#262)
* Change default port for secvisogram * Following change from https://github.com/secvisogram/csaf-validator-service/pull/14 * Improve script for setting up validation service * Add a test to fail if we cannot connect. * Add copyright header.
This commit is contained in:
parent
2614c1a4ba
commit
86fb441446
4 changed files with 19 additions and 4 deletions
|
|
@ -1,4 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# This file is Free Software under the MIT License
|
||||
# without warranty, see README.md and LICENSES/MIT.txt for details.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||
# Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||
|
||||
set -e # to exit if a command in the script fails
|
||||
|
||||
sudo mkdir -p /var/lib/csaf
|
||||
sudo chgrp www-data /var/lib/csaf/
|
||||
|
|
@ -8,7 +18,7 @@ sudo chgrp www-data /var/lib/csaf/validations.db
|
|||
sudo chmod g+rw,o-rwx /var/lib/csaf/validations.db
|
||||
|
||||
echo '
|
||||
remote_validator= { "url" = "http://localhost:3000", "presets" = ["mandatory"], "cache" = "/var/lib/csaf/validations.db" }
|
||||
remote_validator= { "url" = "http://localhost:8082", "presets" = ["mandatory"], "cache" = "/var/lib/csaf/validations.db" }
|
||||
' | sudo tee --append /etc/csaf/config.toml
|
||||
|
||||
# Install nodejs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue