Skip to content

Commit da2e55a

Browse files
committed
https-manager version 2
1 parent 2b5fc90 commit da2e55a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2444
-0
lines changed

letsencrypt/.classpath

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="bin/main" path="src/main/resources">
10+
<attributes>
11+
<attribute name="gradle_scope" value="main"/>
12+
<attribute name="gradle_used_by_scope" value="main,test"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
16+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
17+
<classpathentry kind="output" path="bin/default"/>
18+
</classpath>

letsencrypt/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.gradle/
2+
/bin/
3+
/build/
4+
/Konzept.md
5+
/push.bat
6+
/AppConfig.properties
7+
/lab/

letsencrypt/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>letsencrypt</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5+
connection.project.dir=
6+
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=false
12+
show.console.view=true
13+
show.executions.view=true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/resources/templates/AddDomainPage.html=UTF-8
3+
encoding//src/main/resources/templates/CheckCertificatesPage.html=UTF-8
4+
encoding//src/main/resources/templates/DomainListPage.html=UTF-8
5+
encoding//src/main/resources/templates/EditDomainPage.html=UTF-8
6+
encoding//src/main/resources/templates/IndexPage.html=UTF-8
7+
encoding//src/main/resources/templates/LoginPage.html=UTF-8
8+
encoding//src/main/resources/templates/master.html=UTF-8
9+
encoding//src/main/resources/templates/menu.html=UTF-8
10+
encoding/<project>=UTF-8
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=17
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13+
org.eclipse.jdt.core.compiler.release=enabled
14+
org.eclipse.jdt.core.compiler.source=17
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
port=8080
2+
development=true
3+
app.name=httpsmanager2
4+
5+
user.login=
6+
user.salt=
7+
user.password=
8+
user.mail=
9+
encryption-frequency=
10+
11+
default-certificate-name=
12+
13+
nginx.image=nginx:1.27.3
14+
mail=
15+
16+
html-folder.nginx=/usr/share/nginx/html
17+
html-folder.host=
18+
html-folder.local=/nginx_html
19+
20+
confd-folder.nginx=/etc/nginx/conf.d
21+
confd-folder.host=
22+
confd-folder.local=/nginx_conf.d
23+
24+
certificates-folder.nginx=/etc/letsencrypt/live
25+
certificates-folder.host=
26+
certificates-folder.local=/nginx_certificates

letsencrypt/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
plugins {
2+
id 'application'
3+
id 'java-library'
4+
id 'eclipse'
5+
id 'com.bmuschko.docker-java-application' version '6.7.0'
6+
}
7+
8+
sourceCompatibility = JavaVersion.VERSION_17
9+
targetCompatibility = JavaVersion.VERSION_17
10+
compileJava.options.encoding = 'UTF-8'
11+
compileTestJava.options.encoding = 'UTF-8'
12+
13+
application {
14+
mainClass = 'httpsmanager.HttpsManager2App'
15+
}
16+
17+
dependencies {
18+
implementation 'com.github.soltaufintel.amalia:amalia-web:0.20.1'
19+
implementation 'com.github.docker-java:docker-java:3.3.6'
20+
implementation 'org.shredzone.acme4j:acme4j-client:3.5.0'
21+
}
22+
23+
repositories {
24+
mavenCentral()
25+
maven { url 'https://jitpack.io' }
26+
maven { url 'https://www.javaxt.com/maven' }
27+
}
28+
29+
apply from: 'gradle/docker.gradle'

letsencrypt/default.conf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
server {
2+
listen 80;
3+
listen [::]:80;
4+
server_name localhost;
5+
6+
#access_log /var/log/nginx/host.access.log main;
7+
8+
location / {
9+
root /usr/share/nginx/html;
10+
index index.html index.htm;
11+
}
12+
13+
#error_page 404 /404.html;
14+
15+
# redirect server error pages to the static page /50x.html
16+
#
17+
error_page 500 502 503 504 /50x.html;
18+
location = /50x.html {
19+
root /usr/share/nginx/html;
20+
}
21+
22+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
23+
#
24+
#location ~ \.php$ {
25+
# proxy_pass http://127.0.0.1;
26+
#}
27+
28+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
29+
#
30+
#location ~ \.php$ {
31+
# root html;
32+
# fastcgi_pass 127.0.0.1:9000;
33+
# fastcgi_index index.php;
34+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
35+
# include fastcgi_params;
36+
#}
37+
38+
# deny access to .htaccess files, if Apache's document root
39+
# concurs with nginx's one
40+
#
41+
#location ~ /\.ht {
42+
# deny all;
43+
#}
44+
}

letsencrypt/gradle/docker.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
docker {
2+
javaApplication {
3+
ports = [ 8080 ]
4+
baseImage = 'eclipse-temurin:17.0.7_7-jre-alpine'
5+
images = [ (findProperty('dockerreg')?:'') + project.name ]
6+
maintainer = 'SoltauFintel'
7+
mainClassName = application.mainClass
8+
}
9+
}
10+
11+
dockerCreateDockerfile {
12+
outputs.upToDateWhen { false }
13+
doLast {
14+
def dockerfile = destFile.get().asFile
15+
dockerfile.text = dockerfile.text.replace('WORKDIR', 'RUN apk add bash nano\nENV TZ=Europe/Berlin\nWORKDIR')
16+
}
17+
}

0 commit comments

Comments
 (0)