all: Use protobuf to generate config structs (fixes #6734) (#6900)

This commit is contained in:
Audrius Butkevicius
2020-08-25 08:11:14 +02:00
committed by GitHub
parent 5b953033c7
commit d507d932b8
84 changed files with 3807 additions and 542 deletions
+23
View File
@@ -0,0 +1,23 @@
syntax = "proto3";
package config;
import "lib/config/authmode.proto";
import "ext.proto";
message GUIConfiguration {
bool enabled = 1 [(ext.xml) = "enabled,attr", (ext.default) = "true"];
string address = 2 [(ext.goname) = "RawAddress", (ext.default) = "127.0.0.1:8384"];
string unix_socket_permissions = 3 [(ext.goname) = "RawUnixSocketPermissions", (ext.xml) = "unixSocketPermissions,omitempty"];
string user = 4 [(ext.xml) = "user,omitempty"];
string password = 5 [(ext.xml) = "password,omitempty"];
AuthMode auth_mode = 6 [(ext.xml) = "authMode,omitempty"];
bool use_tls = 7 [(ext.goname) = "RawUseTLS", (ext.xml) = "tls,attr", (ext.json) = "useTLS"];
string api_key = 8 [(ext.goname) = "APIKey", (ext.xml) = "apikey,omitempty"];
bool insecure_admin_access = 9 [(ext.xml) = "insecureAdminAccess,omitempty"];
string theme = 10 [(ext.default) = "default"];
bool debugging = 11 [(ext.xml) = "debugging,attr"];
bool insecure_skip_host_check = 12 [(ext.xml) = "insecureSkipHostcheck,omitempty", (ext.json) = "insecureSkipHostcheck"];
bool insecure_allow_frame_loading = 13 [(ext.xml) = "insecureAllowFrameLoading,omitempty"];
}