-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
- Loading branch information
1 parent
ad87672
commit 67b5bc1
Showing
9 changed files
with
192 additions
and
127 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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright (c) 2023 Bosch.IO GmbH and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.hawkbit.doc; | ||
|
||
import org.eclipse.hawkbit.autoconfigure.security.EnableHawkbitManagedSecurityConfiguration; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
/** | ||
* A {@link SpringBootApplication} annotated class with a main method to start. | ||
* The minimal configuration for the stand alone hawkBit server. | ||
* | ||
*/ | ||
@SpringBootApplication | ||
@EnableHawkbitManagedSecurityConfiguration | ||
// Exception squid:S1118 - Spring boot standard behavior | ||
@SuppressWarnings({ "squid:S1118" }) | ||
public class Start { | ||
|
||
/** | ||
* Main method to start the spring-boot application. | ||
* | ||
* @param args | ||
* the VM arguments. | ||
*/ | ||
// Exception squid:S2095 - Spring boot standard behavior | ||
@SuppressWarnings({ "squid:S2095" }) | ||
public static void main(final String[] args) { | ||
SpringApplication.run(Start.class, args); | ||
} | ||
} |
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,41 @@ | ||
# | ||
# Copyright (c) 2023 Bosch.IO GmbH and others | ||
# | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
# User Security | ||
spring.security.user.name=admin | ||
spring.security.user.password={noop}admin | ||
spring.main.allow-bean-definition-overriding=true | ||
|
||
# Http Encoding | ||
server.servlet.encoding.charset=UTF-8 | ||
server.servlet.encoding.enabled=true | ||
server.servlet.encoding.force=true | ||
|
||
# DDI authentication configuration | ||
hawkbit.server.ddi.security.authentication.anonymous.enabled=false | ||
hawkbit.server.ddi.security.authentication.targettoken.enabled=false | ||
hawkbit.server.ddi.security.authentication.gatewaytoken.enabled=false | ||
|
||
# Optional events | ||
hawkbit.server.repository.publish-target-poll-event=false | ||
|
||
## Configuration for DMF/RabbitMQ integration | ||
hawkbit.dmf.rabbitmq.enabled=false | ||
|
||
# Swagger Configuration | ||
|
||
#springdoc.swagger-ui.path=/update-server-documentation | ||
#springdoc.api-docs.path=/update-server-api-docs | ||
springdoc.show-oauth2-endpoints=true | ||
springdoc.api-docs.version=openapi_3_0 | ||
springdoc.show-login-endpoint=true | ||
springdoc.packages-to-scan=org.eclipse.hawkbit.mgmt,org.eclipse.hawkbit.ddi | ||
springdoc.swagger-ui.oauth2RedirectUrl=/login/oauth2/code/suite | ||
springdoc.paths-to-exclude=/system/** |
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,14 @@ | ||
______ _ _ _ _ ____ _ _ | ||
| ____| | (_) | | | | | _ \(_) | | ||
| |__ ___| |_ _ __ ___ ___ | |__ __ ___ _| | _| |_) |_| |_ | ||
| __| / __| | | '_ \/ __|/ _ \ | '_ \ / _` \ \ /\ / / |/ / _ <| | __| | ||
| |___| (__| | | |_) \__ \ __/ | | | | (_| |\ V V /| <| |_) | | |_ | ||
|______\___|_|_| .__/|___/\___| |_| |_|\__,_| \_/\_/ |_|\_\____/|_|\__| | ||
| | | ||
|_| | ||
|
||
Eclipse hawkBit Update Server ${application.formatted-version} | ||
using Spring Boot ${spring-boot.formatted-version} | ||
|
||
Go to https://www.eclipse.org/hawkbit for more information. | ||
|
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2015 Bosch Software Innovations GmbH and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
--> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/base.xml" /> | ||
|
||
<logger name="org.eclipse.hawkbit.eventbus.DeadEventListener" level="WARN" /> | ||
<Logger name="org.springframework.boot.actuate.audit.listener.AuditListener" level="WARN" /> | ||
|
||
<Logger name="org.hibernate.validator.internal.util.Version" level="WARN" /> | ||
|
||
<!-- Security Log with hints on potential attacks --> | ||
<logger name="server-security" level="INFO" /> | ||
|
||
<!-- Suppressing "More than one Servlet Mapping defined. WebSocket may not work" | ||
error due to the way VaadinServletConfiguration configures the endpoints mapping ("/UI" and "/UI/*"). | ||
At the end only the first "/UI" is taken for websocket communication. --> | ||
<logger name="org.atmosphere.util.IOUtils" level="OFF" /> | ||
|
||
<Root level="INFO"> | ||
<appender-ref ref="CONSOLE" /> | ||
</Root> | ||
|
||
</configuration> |
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.