VionConfig.java
942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.viontech.fanxing.commons.config;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import java.util.List;
/**
* .
*
* @author 谢明辉
* @date 2021/9/8
*/
@RefreshScope
@Configuration
@Getter
@Setter
@ConfigurationProperties(prefix = "vion")
public class VionConfig {
private Image image;
private boolean enableForward;
private String authPath;
private Gateway gateway;
private List<String> supportedVideoFormats;
private List<String> skipAuth;
public @Getter
@Setter
static class Image {
private String path;
private Integer keep;
}
public @Getter
@Setter
static class Gateway {
private String ip;
private String port;
}
}