Refactor m3uproxy configuration: update cache and data paths, adjust JSON structure for EPG and auth file
This commit is contained in:
@@ -12,7 +12,7 @@ locals {
|
|||||||
geoip_path = "${local.m3uproxy_path}/geoip"
|
geoip_path = "${local.m3uproxy_path}/geoip"
|
||||||
|
|
||||||
m3uproxy_path = "${local.persistent_folder}/m3uproxy"
|
m3uproxy_path = "${local.persistent_folder}/m3uproxy"
|
||||||
m3uproxy_cache_path = "${local.m3uproxy_path}/cache"
|
m3uproxy_data_path = "${local.m3uproxy_path}/data"
|
||||||
squid_app_path = "${local.m3uproxy_path}/squid"
|
squid_app_path = "${local.m3uproxy_path}/squid"
|
||||||
wireguard_address = "192.168.5.3/32"
|
wireguard_address = "192.168.5.3/32"
|
||||||
wireguard_dns = "192.168.5.1"
|
wireguard_dns = "192.168.5.1"
|
||||||
|
|||||||
@@ -150,6 +150,10 @@ resource "kubernetes_deployment" "m3uproxy" {
|
|||||||
sub_path = "m3uproxy.json"
|
sub_path = "m3uproxy.json"
|
||||||
read_only = true
|
read_only = true
|
||||||
}
|
}
|
||||||
|
volume_mount {
|
||||||
|
name = "m3uproxy-cache"
|
||||||
|
mount_path = "/app/cache"
|
||||||
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "m3uproxy-playlist"
|
name = "m3uproxy-playlist"
|
||||||
mount_path = "/app/conf/playlist.json"
|
mount_path = "/app/conf/playlist.json"
|
||||||
@@ -157,8 +161,8 @@ resource "kubernetes_deployment" "m3uproxy" {
|
|||||||
read_only = true
|
read_only = true
|
||||||
}
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "m3uproxy-app-cache"
|
name = "m3uproxy-app-data"
|
||||||
mount_path = "/app/cache"
|
mount_path = "/app/data"
|
||||||
}
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "geoip-db"
|
name = "geoip-db"
|
||||||
@@ -176,6 +180,11 @@ resource "kubernetes_deployment" "m3uproxy" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
volume {
|
||||||
|
name = "m3uproxy-cache"
|
||||||
|
empty_dir {
|
||||||
|
}
|
||||||
|
}
|
||||||
volume {
|
volume {
|
||||||
name = "m3uproxy-playlist"
|
name = "m3uproxy-playlist"
|
||||||
config_map {
|
config_map {
|
||||||
@@ -188,9 +197,9 @@ resource "kubernetes_deployment" "m3uproxy" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
volume {
|
volume {
|
||||||
name = "m3uproxy-app-cache"
|
name = "m3uproxy-app-data"
|
||||||
host_path {
|
host_path {
|
||||||
path = local.m3uproxy_cache_path
|
path = local.m3uproxy_data_path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
"playlist": "conf/playlist.json",
|
"playlist": "conf/playlist.json",
|
||||||
"epg": "https://m3upt.com/epg",
|
"epg": ["https://m3upt.com/epg"],
|
||||||
"default_timeout": 3,
|
"default_timeout": 3,
|
||||||
"num_workers": 4,
|
"num_workers": 4,
|
||||||
"scan_time": 43200,
|
"scan_time": 43200,
|
||||||
|
"epg_scan_time": 86400,
|
||||||
|
"cache_dir": "cache",
|
||||||
"security": {
|
"security": {
|
||||||
"geoip": {
|
"geoip": {
|
||||||
"database": "GeoIP/GeoLite2-Country.mmdb",
|
"database": "GeoIP/GeoLite2-Country.mmdb",
|
||||||
@@ -26,7 +28,7 @@
|
|||||||
"provider": "file",
|
"provider": "file",
|
||||||
"secret_key": "${m3uproxy_secret}",
|
"secret_key": "${m3uproxy_secret}",
|
||||||
"settings": {
|
"settings": {
|
||||||
"file_path": "cache/auth.json"
|
"file_path": "data/auth.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user