refactory

This commit is contained in:
2022-04-29 12:35:14 +03:00
parent a868b66e0c
commit cbfe2c50a7
32 changed files with 603 additions and 383 deletions

View File

@@ -1,8 +1,28 @@
{
"properties": [
{
"name": "maven.storage",
"type": "java.lang.String"
"properties": [
{
"name": "minio.url",
"type": "java.lang.String",
"description": "MinIO console url."
},
{
"name": "minio.accessKey",
"type": "java.lang.String",
"description": "MinIO Access key (login)."
},
{
"name": "minio.secretKey",
"type": "java.lang.String",
"description": "MinIO Secret key (password)."
},
{
"name": "minio.bucket",
"type": "java.lang.String",
"description": "MinIO Bucket name."
},
{
"name": "maven-mirrors.list",
"type": "java.util.List<ru.di9.mirror.web.config.MavenMirrorsProperties.MirrorData>",
"sourceType": "java.util.List<ru.di9.mirror.web.config.MavenMirrorsProperties.MirrorData>"
}
]
}
] }

View File

@@ -2,7 +2,22 @@ server:
address: 127.0.0.1
port: 8080
spring:
freemarker:
template-loader-path: classpath:/templates
suffix: .ftl
debug: false
maven:
storage: './storage'
minio:
url: 'http://dev.di9.ru:9000'
accessKey: 'mirror'
secretKey: 'mirror123'
bucket: 'mirror'
maven-mirrors:
list:
- id: 'maven_central'
url: 'https://repo1.maven.org/maven2'
- id: 'spigot'
url: 'https://hub.spigotmc.org/nexus/content/groups/public'

View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="ru">
<header>
<meta charset="UTF-8">
<title>Project-Mirror</title>
</header>
<body>
<h1>Index of</h1>
<hr>
<ul>
<#--noinspection FtlTypesInspection-->
<#list model["links"] as item>
<li><a href="${item.link()}">${item.name()}</a></li>
</#list>
</ul>
<hr>
<p style="text-align:right">Project-Mirror</p>
</body>
</html>