Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <Yannic.Klem@bosch.io>
  • Loading branch information
Yannic92 committed May 30, 2022
1 parent e100846 commit eba25b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ public final class DittoJwtAuthorizationSubjectsProvider implements JwtAuthoriza

@SuppressWarnings("unused") //Loaded via reflection by AkkaExtension.
public DittoJwtAuthorizationSubjectsProvider(final ActorSystem actorSystem) {
final OAuthConfig oAuthConfig =
DittoGatewayConfig.of(DefaultScopedConfig.dittoScoped(actorSystem.settings().config()))
.getAuthenticationConfig()
.getOAuthConfig();
final DefaultScopedConfig dittoScoped =
DefaultScopedConfig.dittoScoped(actorSystem.settings().config());
final OAuthConfig oAuthConfig = DittoGatewayConfig.of(dittoScoped)
.getAuthenticationConfig()
.getOAuthConfig();
jwtSubjectIssuersConfig = JwtSubjectIssuersConfig.fromOAuthConfig(oAuthConfig);
}

Expand Down
12 changes: 6 additions & 6 deletions gateway/service/src/main/resources/gateway.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ditto {
service-name = "gateway"
signal-transformer = "org.eclipse.ditto.edge.api.dispatching.NoOpSignalTransformer"
signal-transformer = "org.eclipse.ditto.edge.api.dispatching.NoOpSignalTransformer"
root-child-actor-starter = "org.eclipse.ditto.base.service.NoOpRootChildActorStarter"
root-actor-starter = "org.eclipse.ditto.base.service.NoOpRootActorStarter"
mapping-strategy.implementation = "org.eclipse.ditto.gateway.service.util.GatewayMappingStrategies"
Expand Down Expand Up @@ -477,17 +477,17 @@ akka {
raw-request-uri-header = ${?AKKA_HTTP_SERVER_RAW_REQUEST_URI_HEADER}

parsing {
max-uri-length = 8k # default: 2k
max-uri-length = 8k # default: 2k

# Default maximum content length which should not be exceeded by incoming request entities.
# is handled + checked additionally by Ditto code - just in order to prevent the "worst case" where the backend
# has to read a lot of data it won't process anyway, set a reasonable limit:
max-content-length = 1m # default: 8m
max-content-length = 1m # default: 8m

# increase other default limits regarding headers:
max-header-name-length = 64 # default: 64
max-header-value-length = 16k # default: 8k
max-header-count = 64 # default: 64
max-header-name-length = 64 # default: 64
max-header-value-length = 16k # default: 8k
max-header-count = 64 # default: 64

illegal-header-warnings = off # default: on
error-logging-verbosity = simple # default: full
Expand Down

0 comments on commit eba25b4

Please sign in to comment.