Skip to content

Commit

Permalink
alist: unify uci name
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
(cherry picked from commit 5a12f44)
  • Loading branch information
1715173329 committed Aug 16, 2023
1 parent 59e403e commit 092e711
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions net/alist/files/alist.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ config alist 'config'
# site
option site_url ''
option site_cdn ''
option login_expire '48'
option max_connections '0'
option tls_insecure '0'
option site_login_expire '48'
option site_max_connections '0'
option site_tls_insecure '0'

# database
option db_type 'sqlite3'
Expand Down
10 changes: 5 additions & 5 deletions net/alist/files/alist.init
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ start_service() {
uci_json_add_string "site_url" "site_url"
uci_json_add_string "cdn" "site_cdn"
json_add_string "jwt_secret" "$jwt_secret"
uci_json_add_int "token_expires_in" "login_expire" "48"
uci_json_add_int "token_expires_in" "site_login_expire" "48"
json_add_object "database"
uci_json_add_string "type" "db_type" "sqlite3"
uci_json_add_string "host" "db_host"
Expand All @@ -64,8 +64,8 @@ start_service() {
uci_json_add_int "http_port" "listen_http_port" "5244"
uci_json_add_int "https_port" "listen_https_port" "-1"
uci_json_add_boolean "force_https" "listen_force_https"
uci_json_add_string "cert_file" "tls_cert_file"
uci_json_add_string "key_file" "tls_key_file"
uci_json_add_string "cert_file" "listen_cert_file"
uci_json_add_string "key_file" "listen_key_file"
uci_json_add_string "unix_file" "listen_unix_file"
uci_json_add_string "unix_file_perm" "listen_unix_file_perm"
json_close_object
Expand All @@ -80,8 +80,8 @@ start_service() {
json_add_boolean "compress" "0"
json_close_object
json_add_int "delayed_start" "0"
uci_json_add_int "max_connections" "max_connections"
uci_json_add_boolean "tls_insecure_skip_verify" "tls_insecure"
uci_json_add_int "max_connections" "site_max_connections"
uci_json_add_boolean "tls_insecure_skip_verify" "site_tls_insecure"
json_dump > "$CONF_DIR/config.json"

local db_type
Expand Down

0 comments on commit 092e711

Please sign in to comment.