v2raya: do not allow changing config/log directory
We need stable path to persist configurations and read log from LuCI. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
3711f7f6d2
commit
272cff0d1c
3 changed files with 4 additions and 9 deletions
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=v2rayA
|
PKG_NAME:=v2rayA
|
||||||
PKG_VERSION:=2.2.4.6
|
PKG_VERSION:=2.2.4.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
|
||||||
|
|
|
@ -5,9 +5,6 @@ config v2raya 'config'
|
||||||
# Listening address
|
# Listening address
|
||||||
option address '0.0.0.0:2017'
|
option address '0.0.0.0:2017'
|
||||||
|
|
||||||
# v2rayA configuration directory
|
|
||||||
option config '/etc/v2raya'
|
|
||||||
|
|
||||||
# Make sure your IPv6 network works fine before you turn it on.
|
# Make sure your IPv6 network works fine before you turn it on.
|
||||||
# Optional values: auto, on, off.
|
# Optional values: auto, on, off.
|
||||||
option ipv6_support 'auto'
|
option ipv6_support 'auto'
|
||||||
|
@ -19,9 +16,6 @@ config v2raya 'config'
|
||||||
# Optional values: trace, debug, info, warn or error
|
# Optional values: trace, debug, info, warn or error
|
||||||
option log_level 'info'
|
option log_level 'info'
|
||||||
|
|
||||||
# The path of log file
|
|
||||||
option log_file '/var/log/v2raya/v2raya.log'
|
|
||||||
|
|
||||||
# Maximum number of days to keep log files
|
# Maximum number of days to keep log files
|
||||||
option log_max_days '3'
|
option log_max_days '3'
|
||||||
|
|
||||||
|
|
|
@ -40,12 +40,13 @@ start_service() {
|
||||||
procd_set_param command "$PROG"
|
procd_set_param command "$PROG"
|
||||||
procd_set_param env XDG_DATA_HOME="/usr/share"
|
procd_set_param env XDG_DATA_HOME="/usr/share"
|
||||||
|
|
||||||
|
append_env "config" "/etc/v2raya"
|
||||||
|
append_env "log_file" "/var/log/v2raya/v2raya.log"
|
||||||
|
|
||||||
append_env_arg "config" "address" "0.0.0.0:2017"
|
append_env_arg "config" "address" "0.0.0.0:2017"
|
||||||
append_env_arg "config" "config" "/etc/v2raya"
|
|
||||||
append_env_arg "config" "ipv6_support" "auto"
|
append_env_arg "config" "ipv6_support" "auto"
|
||||||
append_env_arg "config" "nftables_support" "auto"
|
append_env_arg "config" "nftables_support" "auto"
|
||||||
append_env_arg "config" "log_level" "info"
|
append_env_arg "config" "log_level" "info"
|
||||||
append_env_arg "config" "log_file" "/var/log/v2raya/v2raya.log"
|
|
||||||
append_env_arg "config" "log_max_days" "3"
|
append_env_arg "config" "log_max_days" "3"
|
||||||
append_env_arg "config" "v2ray_bin"
|
append_env_arg "config" "v2ray_bin"
|
||||||
append_env_arg "config" "v2ray_confdir"
|
append_env_arg "config" "v2ray_confdir"
|
||||||
|
|
Loading…
Reference in a new issue