Skip to content

Commit

Permalink
Remove some useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ligangty committed Mar 7, 2023
1 parent bc645a3 commit 285f169
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 192 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ target

*.dat
log/*
config/*
135 changes: 0 additions & 135 deletions config/application.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions config/security-bindings.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public Response getRepoBundle()
}
}

@Operation( description = "Import a ZIP-compressed file containing repository definitions into the repository management database." )
@APIResponse( responseCode = "200", description = "All repository definitions which are imported successfully." )
@POST
@Path( "/import" )
@Consumes( MEDIATYPE_APPLICATION_ZIP )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public abstract class ArtifactStore

public static final String TRACKING_ID = "trackingId";

// @ApiModelProperty( required = true, dataType = "string",
// value = "Serialized store key, of the form: '[hosted|group|remote]:name'" )
private StoreKey key;

private String description;
Expand All @@ -77,8 +75,6 @@ public abstract class ArtifactStore

private boolean disabled;

// @ApiModelProperty( required = false, dataType = "int",
// value = "Integer time in seconds which is used for repo automatically re-enable when set disable by errors, positive value means time in seconds, -1 means never disable, empty or 0 means use default timeout." )
@JsonProperty( "disable_timeout" )
private int disableTimeout;

Expand Down
50 changes: 32 additions & 18 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
#
# Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy-repository-service)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

quarkus:
http:
port: 8080
read-timeout: 30m
limits:
max-body-size: 500M
max-body-size: 500m
package:
type: uber-jar
application:
Expand All @@ -22,6 +38,8 @@ quarkus:
security:
auth:
enabled-in-dev-mode: false
opentelemetry:
enabled: true
log:
level: INFO
min-level: TRACE
Expand Down Expand Up @@ -56,8 +74,19 @@ quarkus:
max-file-size: 10M
swagger-ui:
always-include: true
opentelemetry:
enabled: false

indy_security:
enabled: True

repository:
data-storage: mem
affectedGroupsExclude: "^build-.+|^g-.+-build-.+"
query:
cache:
enabled: false

cassandra:
enabled: false

kafka:
bootstrap:
Expand All @@ -75,18 +104,6 @@ mp:
value:
serializer: "io.quarkus.kafka.client.serialization.ObjectMapperSerializer"

repository:
data-storage: cassandra
affectedGroupsExclude: "^build-.+|^g-.+-build-.+"
query:
cache:
enabled: false

cassandra:
enabled: false

indy_security:
enabled: True

"%dev":
quarkus:
Expand Down Expand Up @@ -127,6 +144,3 @@ indy_security:

ispn:
configDir: /tmp

cassandra:
enabled: false
16 changes: 16 additions & 0 deletions src/main/resources/security-bindings.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy-repository-service)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

constraints:
- role: admin
urlPattern: "/api/admin/.*"
Expand Down

0 comments on commit 285f169

Please sign in to comment.