Skip to content

Commit

Permalink
set unsused settings to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 2, 2023
1 parent d1abc2c commit b1ef8be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void option_map_init(uint8_t settingsId)
OPTION_STRING("core.contentdir", &settings->core.contentdir, "default", "Content dir", "Directory for placing cloud content")
OPTION_STRING("core.librarydir", &settings->core.librarydir, "library", "Library dir", "Directory of the audio library")
OPTION_STRING("core.datadir", &settings->core.datadir, "data", "Data dir", "Base directory for 'contentdir', 'firmwaredir' and 'wwwdir' when they are relative")
OPTION_STRING("core.wwwdir", &settings->core.wwwdir, "www", "WWW dir", "Directory for placing web content")
OPTION_INTERNAL_STRING("core.wwwdir", &settings->core.wwwdir, "www", "WWW dir")
OPTION_STRING("core.firmwaredir", &settings->core.firmwaredir, "firmware", "Firmware dir", "Directory to upload original firmware")
OPTION_STRING("core.sslkeylogfile", &settings->core.sslkeylogfile, "", "SSL-key logfile", "SSL/TLS key log filename")

Expand All @@ -70,9 +70,9 @@ static void option_map_init(uint8_t settingsId)
OPTION_STRING("core.server_cert.file.key", &settings->core.server_cert.file.key, "certs/server/teddy-key.pem", "Server key", "Server key")
OPTION_TREE_DESC("core.server_cert.data", "Raw certificates")
OPTION_STRING("core.server_cert.data.ca", &settings->core.server_cert.data.ca, "", "CA certificate data", "CA certificate data")
OPTION_STRING("core.server_cert.data.ca_key", &settings->core.server_cert.data.ca_key, "", "CA key data", "CA key data")
OPTION_STRING("core.server_cert.data.crt", &settings->core.server_cert.data.crt, "", "Server certificate data", "Server certificate data")
OPTION_STRING("core.server_cert.data.key", &settings->core.server_cert.data.key, "", "Server key data", "Server key data")
OPTION_INTERNAL_STRING("core.server_cert.data.ca_key", &settings->core.server_cert.data.ca_key, "", "CA key data")
OPTION_INTERNAL_STRING("core.server_cert.data.crt", &settings->core.server_cert.data.crt, "", "Server certificate data")
OPTION_INTERNAL_STRING("core.server_cert.data.key", &settings->core.server_cert.data.key, "", "Server key data")

/* settings for HTTPS/cloud client */
OPTION_TREE_DESC("core.client_cert", "Cloud client certificates")
Expand All @@ -81,9 +81,9 @@ static void option_map_init(uint8_t settingsId)
OPTION_STRING("core.client_cert.file.crt", &settings->core.client_cert.file.crt, "certs/client/client.der", "Client certificate", "Client certificate")
OPTION_STRING("core.client_cert.file.key", &settings->core.client_cert.file.key, "certs/client/private.der", "Client key", "Client key")
OPTION_TREE_DESC("core.client_cert.data", "Raw certificates")
OPTION_STRING("core.client_cert.data.ca", &settings->core.client_cert.data.ca, "", "Client CA", "Client CA")
OPTION_STRING("core.client_cert.data.crt", &settings->core.client_cert.data.crt, "", "Client certificate data", "Client certificate data")
OPTION_STRING("core.client_cert.data.key", &settings->core.client_cert.data.key, "", "Client key data", "Client key data")
OPTION_INTERNAL_STRING("core.client_cert.data.ca", &settings->core.client_cert.data.ca, "", "Client CA")
OPTION_INTERNAL_STRING("core.client_cert.data.crt", &settings->core.client_cert.data.crt, "", "Client certificate data")
OPTION_INTERNAL_STRING("core.client_cert.data.key", &settings->core.client_cert.data.key, "", "Client key data")

OPTION_STRING("core.allowOrigin", &settings->core.allowOrigin, "", "CORS Allow-Origin", "Set CORS Access-Control-Allow-Origin header")

Expand Down

0 comments on commit b1ef8be

Please sign in to comment.