oss
This commit is contained in:
parent
75eea50fa1
commit
226a0a4e76
|
|
@ -0,0 +1,4 @@
|
|||
Manifest-Version: 1.0
|
||||
Created-By: Maven JAR Plugin 3.4.2
|
||||
Build-Jdk-Spec: 21
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
artifactId=pigx-common-oss
|
||||
groupId=net.xnzn.framework
|
||||
version=3.2.2
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>net.xnzn.framework</groupId>
|
||||
<artifactId>pigx-common</artifactId>
|
||||
<version>3.2.2</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>pigx-common-oss</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<description>pigx 文件系统依赖</description>
|
||||
|
||||
<properties>
|
||||
<aws-java-sdk-s3.version>1.12.138</aws-java-sdk-s3.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.amazonaws</groupId>
|
||||
<artifactId>aws-java-sdk-s3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"groups": [
|
||||
{
|
||||
"name": "oss",
|
||||
"type": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
}
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "oss.access-key",
|
||||
"type": "java.lang.String",
|
||||
"description": "Access key就像用户ID,可以唯一标识你的账户",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.app-id",
|
||||
"type": "java.lang.String",
|
||||
"description": "应用ID",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.bucket-name",
|
||||
"type": "java.lang.String",
|
||||
"description": "默认的存储桶名称",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"defaultValue": "lnyst"
|
||||
},
|
||||
{
|
||||
"name": "oss.custom-domain",
|
||||
"type": "java.lang.String",
|
||||
"description": "自定义域名",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.endpoint",
|
||||
"type": "java.lang.String",
|
||||
"description": "对象存储服务的URL",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.expires-time",
|
||||
"type": "java.lang.Integer",
|
||||
"description": "图片路径过期时间 默认最大值7天",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"defaultValue": 604800
|
||||
},
|
||||
{
|
||||
"name": "oss.path-style-access",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "true path-style nginx 反向代理和S3默认支持 pathStyle {http:\/\/endpoint\/bucketname} false supports virtual-hosted-style 阿里云等需要配置为 virtual-hosted-style 模式{http:\/\/bucketname.endpoint}",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "oss.region",
|
||||
"type": "java.lang.String",
|
||||
"description": "区域",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.secret-key",
|
||||
"type": "java.lang.String",
|
||||
"description": "Secret key是你账户的密码",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties"
|
||||
},
|
||||
{
|
||||
"name": "oss.use-http",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "默认的访问方式 false是https走的默认 true是http",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"name": "oss.use-token",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "是否采用加签方式 false不使用token true是使用token 默认不使用token",
|
||||
"sourceType": "com.pig4cloud.pigx.common.oss.OssProperties",
|
||||
"defaultValue": false
|
||||
}
|
||||
],
|
||||
"hints": []
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
com.pig4cloud.pigx.common.oss.OssAutoConfiguration
|
||||
Loading…
Reference in New Issue