-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from 3KeyCompany/release/2.7.0
Release version 2.7.0
- Loading branch information
Showing
92 changed files
with
2,465 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,11 @@ COPY docker /home/app/docker | |
# Package stage | ||
FROM eclipse-temurin:17-jre-alpine | ||
|
||
MAINTAINER CZERTAINLY <[email protected]> | ||
|
||
# add non root user czertainly | ||
RUN addgroup --system --gid 10001 czertainly && adduser --system --home /opt/czertainly --uid 10001 --ingroup czertainly czertainly | ||
|
||
RUN mkdir /tmp/tomcat | ||
|
||
RUN apk update && \ | ||
apk add --no-cache curl | ||
|
||
|
@@ -26,6 +26,26 @@ COPY --from=build /home/app/target/*.jar /opt/czertainly/app.jar | |
|
||
WORKDIR /opt/czertainly | ||
|
||
ENV JDBC_URL= | ||
ENV JDBC_USERNAME= | ||
ENV JDBC_PASSWORD= | ||
ENV DB_SCHEMA=core | ||
ENV PORT=8080 | ||
ENV HEADER_NAME=X-APP-CERTIFICATE | ||
ENV HEADER_ENABLED= | ||
ENV TS_PASSWORD= | ||
ENV OPA_BASE_URL= | ||
ENV AUTH_SERVICE_BASE_URL= | ||
ENV AUTH_TOKEN_HEADER_NAME=X-USERINFO | ||
ENV AUDITLOG_ENABLED=false | ||
ENV SCHEDULED_TASKS_ENABLED=true | ||
ENV JAVA_OPTS= | ||
ENV TRUSTED_CERTIFICATES= | ||
|
||
ENV HTTP_PROXY= | ||
ENV HTTPS_PROXY= | ||
ENV NO_PROXY= | ||
|
||
USER 10001 | ||
|
||
ENTRYPOINT ["/opt/czertainly/entry.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/com/czertainly/core/api/web/SettingControllerImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.czertainly.core.api.web; | ||
|
||
import com.czertainly.api.interfaces.core.web.SettingController; | ||
import com.czertainly.api.model.core.settings.PlatformSettingsDto; | ||
import com.czertainly.api.model.core.settings.Section; | ||
import com.czertainly.core.service.SettingService; | ||
import com.czertainly.core.util.converter.SectionCodeConverter; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.WebDataBinder; | ||
import org.springframework.web.bind.annotation.InitBinder; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class SettingControllerImpl implements SettingController { | ||
|
||
private SettingService settingService; | ||
|
||
@Autowired | ||
public void setSettingService(SettingService settingService) { | ||
this.settingService = settingService; | ||
} | ||
|
||
@InitBinder | ||
public void initBinder(final WebDataBinder webdataBinder) { | ||
webdataBinder.registerCustomEditor(Section.class, new SectionCodeConverter()); | ||
} | ||
|
||
@Override | ||
public PlatformSettingsDto getPlatformSettings() { | ||
return settingService.getPlatformSettings(); | ||
} | ||
|
||
@Override | ||
public void updatePlatformSettings(PlatformSettingsDto request) { | ||
settingService.updatePlatformSettings(request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.