diff options
Diffstat (limited to 'valetapi/opt')
-rw-r--r-- | valetapi/opt/etc/config/application.properties | 50 | ||||
-rw-r--r-- | valetapi/opt/etc/config/logback.xml | 25 | ||||
-rw-r--r-- | valetapi/opt/etc/config/system.properties | 48 |
3 files changed, 123 insertions, 0 deletions
diff --git a/valetapi/opt/etc/config/application.properties b/valetapi/opt/etc/config/application.properties new file mode 100644 index 0000000..b13b815 --- /dev/null +++ b/valetapi/opt/etc/config/application.properties @@ -0,0 +1,50 @@ + +# ============LICENSE_START======================================================= +# ONAP - F-GPS +# ================================================================================ +# Copyright (C) 2019 AT&T Intellectual Property. All rights +# reserved. +# ================================================================================ +# 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. +# ============LICENSE_END============================================ +# =================================================================== +# +### + +#Valet service +server.contextPath=/api/valet/ +logging.pattern.console= +logging.path=logs +logging.file=${logging.path}/log.log +logging.pattern.file=%d{dd-MM-yyyy HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M - %msg%n +# If it is true it will print all logs for ping or else it will print only error logs in api.log file +#logging.ping=true +# To enable SSL, uncomment the following lines: +server.port=8443 +server.ssl.enabled=true +server.ssl.key-store=classpath:keystore.p12 +server.ssl.key-store-type=PKCS12 +server.ssl.key-store-password=password +server.ssl.key-alias=tomcat + +# To enable HTTP while SSL is enabled, uncomment the following line: +server.http.port=8080 + +valet.dark=false + +aaf.url.base=https://aaf.onap.org:8095/proxy + +#If authentication flags are false, then credentials are not required. Otherwise, they are required. +#authentication.aaf=false +#authentication.basic=false + diff --git a/valetapi/opt/etc/config/logback.xml b/valetapi/opt/etc/config/logback.xml new file mode 100644 index 0000000..44cf2f8 --- /dev/null +++ b/valetapi/opt/etc/config/logback.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <appender name="FILE-AUDIT" + class="ch.qos.logback.core.rolling.RollingFileAppender"> + <file>/api/debug.log</file> + <encoder + class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> + <Pattern> %d{yyyy-MM-dd HH:mm:ss} - %msg%n </Pattern> + </encoder> + <rollingPolicy + class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- rollover daily --> + <fileNamePattern>/api/archived/api.%d{yyyy-MM-dd}.%i.log</fileNamePattern> + <timeBasedFileNamingAndTriggeringPolicy + class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> + <maxFileSize>10MB</maxFileSize> + </timeBasedFileNamingAndTriggeringPolicy> + </rollingPolicy> + </appender> + <logger name="com.valet" level="info" additivity="false"> + <appender-ref ref="FILE-AUDIT" /> + </logger> + <root level="INFO"> + <appender-ref ref="FILE-AUDIT" /> + </root> +</configuration> diff --git a/valetapi/opt/etc/config/system.properties b/valetapi/opt/etc/config/system.properties new file mode 100644 index 0000000..0cb3218 --- /dev/null +++ b/valetapi/opt/etc/config/system.properties @@ -0,0 +1,48 @@ + +# ============LICENSE_START======================================================= +# ONAP - F-GPS +# ================================================================================ +# Copyright (C) 2019 AT&T Intellectual Property. All rights +# reserved. +# ================================================================================ +# 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. +# ============LICENSE_END============================================ +# =================================================================== +# +### + +# If the environment property system_properties_path contains a path to a file , System properties created using the file. If the environment variable not present, system.properties in the class path is used for system property creation + +org.onap.eelf.logging.file=logback.xml + +# change as per logback.xml path +org.onap.eelf.logging.path=opt/etc/config +logging.config=opt/etc/config/logback.xml + + +# Default parameters during application startup. +info.build.artifact= ValetApi +info.build.name=org.onap.fgps +info.build.version=0.0.1-SNAPSHOT + +# Spring configuration files +spring.config.location=opt/etc/config/ +spring.config.name=application + +kubernetes.namespace=org-onap-fgps + +routeoffer=DEFAULT + +app_display_name = Valet API +instance_uuid=2768f67b-fdd6-4dc6-9ecb-8325d214a36e +application_name = ValetApi |