2023.03.14 调整目录结构。
This commit is contained in:
27
wtest/cloudfront/private_key.pem
Normal file
27
wtest/cloudfront/private_key.pem
Normal file
@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpAIBAAKCAQEA42RCX28xcStNe9qYxmOEWU0VFn61RHMEjvKniIN6ajto/tT5
|
||||
RLAFBvBGjsEm1QSosaELRPNrFZacb0rfCioD1fI23VBLRWWaf/j4mTI4SJOH4ZNw
|
||||
HSTaxfkUOY4Vr0A4JHDXqh5a842hiHqPxTMNGqbP/NLqACeJBHHAWlrHdyt0UNXE
|
||||
m8qqvqZQFOZrnbEcZXnGrnRNnVxGjvHFp/rUh3UocWEnnaZv+BdzqkkKATvWXcOE
|
||||
W9ZyvnoTQgSbSDInwX5cw7t+W7CjvJ8QLWZAsw/Ndn624BtxgdudLoICFrEK/74p
|
||||
9eEZ5Wzm7x5kbSr+qbcjL2xFO/lhAiFtDqjsbQIDAQABAoIBAGPlLL9uQuM7qcuK
|
||||
aell2MO+eFAslAehG9SMx4rSb9nxhZvGBkflqB+3ONgIBL46UL3QSPoekeGnC8xc
|
||||
sQVvFcZMpUuutZKkIy6rOtNaW52Oqngv5GX5Rd8JIJh0UhRuevuPUz9aHIy4oMkr
|
||||
RrPUTKJzvBWOttwggjIgoudO0CgKa/yFgst6pXmYlkvLkVTqktE5yqiiQ4GowPVu
|
||||
5uTwA1VLzn29VLmdJsagdDPtBXSgSmKjLrNO1xvimSvT+cK5ezPrdM1eHHI8lhVF
|
||||
5HaBxSRzZI0YzM8YPoQ4q2DPSCuu9XxzTWlZ5nviUOgJ6HGYS6OyJPPn+xvjYGFo
|
||||
uXenj8UCgYEA95ruyadc9WtbWi9nb/egzbAZawG8sN81lRQbShuaxn8vKxAAedwi
|
||||
tkcs9pHs3execykBo39ksWx+AX5YFFkSt8ueqp6Ks9O9HrgfscNuSK8g3+pcLo8f
|
||||
kTz553cLfsNwTjPJYOdmWRY+qg1ki/mnYpEJb1WYHSpfVr2sTqs+NjMCgYEA6xni
|
||||
eCrXdRJvuoFwdjdNEQvsJ2faGhAIPiKtnRSLBFZwVXKO1My6YQQ2CKWBH2DhxWEv
|
||||
F3pvgsCFAmwknyGHCzAHQeO41daSMoxxRNsRjaIsbnsqnahDlz8eRAF4p/NGavH8
|
||||
3DifjGCGjT3RkG7iRLNFXu9dbQrm5/upFSxXct8CgYEA4F6yAWO6ld3p0whfyBNx
|
||||
0NHBxri1PuWVTXkB3Z60GylHGdOPSt3TSq+mq+zB4rv9PoerJ3gaS7iPWlUeBZpN
|
||||
nuVR6zRtZdT6bCrW9aOtfQnNVXque7ZQGbFSl4/Fh+IcE5FT647krNe+gyRNt5XM
|
||||
O0JIdW3vwIYUDKslx8ffQQcCgYEArjiSYSauX+13qqh9ZL16eOVy7YjCUYoL8a/V
|
||||
JJCyrFY6DLhGLGBCxd5PBH1RgKVU6eYo9acft69fYfot8VbxMlM3LZbJxH2r/ZWh
|
||||
4rrM+T5y2rSfUhH9dLmrfg3xEdTwHBSTo8a6RVbKnyRuhjAFsY+AGugbPdFUaBlQ
|
||||
pYYkj9UCgYBwUc6HaoSzuFocxn2hHXz99SxO3QZcILXuG3CC0lZn3n+tKJNOugYF
|
||||
RpqgQno3ieZIbYvYtXBJZYIy2JwFFIgrIBuhi5x0Dfn3qNEbghTyjurHCjD5Zwts
|
||||
HbyLHCAM6KUVPvXEeIKQiuRtitoErzV9y5dw+ihwttO7OcBT3cAN6Q==
|
||||
-----END RSA PRIVATE KEY-----
|
9
wtest/cloudfront/public_key.pem
Normal file
9
wtest/cloudfront/public_key.pem
Normal file
@ -0,0 +1,9 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA42RCX28xcStNe9qYxmOE
|
||||
WU0VFn61RHMEjvKniIN6ajto/tT5RLAFBvBGjsEm1QSosaELRPNrFZacb0rfCioD
|
||||
1fI23VBLRWWaf/j4mTI4SJOH4ZNwHSTaxfkUOY4Vr0A4JHDXqh5a842hiHqPxTMN
|
||||
GqbP/NLqACeJBHHAWlrHdyt0UNXEm8qqvqZQFOZrnbEcZXnGrnRNnVxGjvHFp/rU
|
||||
h3UocWEnnaZv+BdzqkkKATvWXcOEW9ZyvnoTQgSbSDInwX5cw7t+W7CjvJ8QLWZA
|
||||
sw/Ndn624BtxgdudLoICFrEK/74p9eEZ5Wzm7x5kbSr+qbcjL2xFO/lhAiFtDqjs
|
||||
bQIDAQAB
|
||||
-----END PUBLIC KEY-----
|
64
wtest/config/fms-core/logback.xml
Normal file
64
wtest/config/fms-core/logback.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<configuration>
|
||||
<!--appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||
<file>${application.home}/logs/application.log</file>
|
||||
<encoder>
|
||||
<pattern>%coloredLevel %logger{128} %d{yyyy-MM-dd HH:mm:ss.SSSXXX, UTC} in %thread %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender-->
|
||||
<property name="log.txtfile" value="/opt/cap/fms-core/logs/access_core"/>
|
||||
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<!--pattern>[%level] - [%d{yyyy-MM-dd HH:mm:ss.SSS, XXX}] - from [%logger] in %thread
|
||||
%n%message%n%xException%n</pattern-->
|
||||
<!--pattern>%coloredLevel %logger{15} - %message%n%xException{5}</pattern-->
|
||||
<!-- <pattern>%logger{128} %d{yyyy-MM-dd HH:mm:ss.SSSXXX, UTC} in %thread %message%n%xException{5}</pattern> -->
|
||||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<appender name="TXT_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<FileNamePattern>${log.txtfile}_%d{yyyy-MM-dd}.log </FileNamePattern>
|
||||
</rollingPolicy>
|
||||
|
||||
<encoder>
|
||||
<!--<pattern> %logger{128} %d{yyyy-MM-dd HH:mm:ss.SSSXXX, UTC} in %thread %message%n%xException{5}</pattern>-->
|
||||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!--logger name="play" level="DEBUG"/-->
|
||||
<logger name="play" level="INFO"/>
|
||||
<!--logger name="application" level="DEBUG"/-->
|
||||
<logger name="application" level="INFO"/>
|
||||
<logger name="models" level="INFO"/>
|
||||
<logger name="controllers" level="INFO"/>
|
||||
<logger name="actors" level="INFO"/>
|
||||
<logger name="utils" level="INFO"/>
|
||||
<logger name="test" level="INFO"/>
|
||||
<logger name="com.waylens.lib" level="INFO"/>
|
||||
|
||||
<!-- Off these ones as they are annoying, and anyway we manage configuration ourself -->
|
||||
<logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF"/>
|
||||
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF"/>
|
||||
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF"/>
|
||||
<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF"/>
|
||||
<logger name="com.mohiva.play.silhouette" level="DEBUG"/>
|
||||
<logger name="org.apache.hadoop.mapred" level="DEBUG"/>
|
||||
<!--logger name="io.netty" level="TRACE"/-->
|
||||
<!--logger name="org.asynchttpclient" level="TRACE"/-->
|
||||
<logger name="akka" level="INFO"/>
|
||||
<logger name="slick" level="INFO"/>
|
||||
<!--logger name="scala.concurrent" level="TRACE"/-->
|
||||
<!--logger name="com.ning" level="TRACE"/-->
|
||||
<!--logger name="play.api.mvc.Action" level="TRACE"/-->
|
||||
<!--logger name="com.zaxxer.hikari" level="TRACE"/-->
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="TXT_FILE"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
|
||||
</configuration>
|
25
wtest/config/fms-core/wtest.conf
Normal file
25
wtest/config/fms-core/wtest.conf
Normal file
@ -0,0 +1,25 @@
|
||||
# This is the configuration file for the gpst prod1
|
||||
include "wtest_core.conf"
|
||||
include "wtest_actor.conf"
|
||||
|
||||
slick {
|
||||
dbs {
|
||||
default {
|
||||
db {
|
||||
numThreads = 10 // evolutions is 20
|
||||
maxConnections = 10 // evolutions is 5*numThread
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
provider.kafka.producerClientID=fleet_api_prod1
|
||||
|
||||
akka.http.server.idle-timeout = 45 seconds
|
||||
play.server.http.idleTimeout = 45 seconds
|
||||
|
||||
|
||||
s360.workerID = 1
|
||||
s360.dataCenterID = 1
|
||||
|
17
wtest/config/fms-core/wtest_actor.conf
Normal file
17
wtest/config/fms-core/wtest_actor.conf
Normal file
@ -0,0 +1,17 @@
|
||||
contact-points = [
|
||||
"akka.tcp://ClusterSystem@172.20.24.171:2551",
|
||||
"akka.tcp://ClusterSystem@172.20.24.171:2552"
|
||||
]
|
||||
|
||||
play.akka.actor-system = "mkfleet-4g-actor-system"
|
||||
|
||||
akka {
|
||||
remote.netty.tcp.port=45000
|
||||
remote.netty.tcp.hostname=172.20.24.171
|
||||
|
||||
remote.netty.tcp.bind-port=45000
|
||||
remote.netty.tcp.bind-hostname=0.0.0.0
|
||||
|
||||
actor.provider = "akka.cluster.ClusterActorRefProvider"
|
||||
extensions = ["akka.cluster.client.ClusterClientReceptionist"]
|
||||
}
|
297
wtest/config/fms-core/wtest_core.conf
Normal file
297
wtest/config/fms-core/wtest_core.conf
Normal file
@ -0,0 +1,297 @@
|
||||
# This is the main configuration file for the application.
|
||||
# ~~~~~
|
||||
|
||||
# Secret key
|
||||
# ~~~~~
|
||||
# The secret key is used to secure cryptographics functions.
|
||||
# If you deploy your application to several instances be sure to use the same key!
|
||||
play.crypto.secret = "]plvsqIOx02py7>9aoiugbDZejiGPDEE[bQL5z@/NAKbtnQ5E@KZwKGUf3kJqLgT"
|
||||
|
||||
# The application languages
|
||||
# ~~~~~
|
||||
play.i18n.langs = ["en"]
|
||||
|
||||
# The application DI modules
|
||||
play.modules {
|
||||
enabled += "modules.AppModule"
|
||||
enabled += "modules.ActorModule"
|
||||
#enabled += "play.modules.swagger.SwaggerModule"
|
||||
}
|
||||
|
||||
# Evolutions
|
||||
# ~~~~~
|
||||
# You can disable evolutions if needed
|
||||
# evolutionplugin=disabled
|
||||
play.evolutions.enabled = true
|
||||
play.evolutions.autoApply = true
|
||||
|
||||
# Logger
|
||||
# ~~~~~
|
||||
# You can also configure logback (http://logback.qos.ch/),
|
||||
# by providing an application-logger.xml file in the conf directory.
|
||||
|
||||
# Root logger:
|
||||
logger.root = ERROR
|
||||
|
||||
# Logger used by the framework:
|
||||
logger.play = INFO
|
||||
|
||||
# Logger provided to your application:
|
||||
logger.application = DEBUG
|
||||
|
||||
|
||||
# WS
|
||||
play.ws.timeout {
|
||||
connection = 6s // evolutions.evolutions is 120
|
||||
idle = 30s // evolutions.evolutions is 120
|
||||
request = 6s //evolutions.evolutions is 120
|
||||
}
|
||||
|
||||
play.http {
|
||||
forwarded.trustedProxies = [ "0.0.0.0/0" ]
|
||||
parser.maxDiskBuffer=209715200 //200M default
|
||||
parser.maxMemoryBuffer=2M
|
||||
}
|
||||
|
||||
# Filter
|
||||
play.filters.enabled += "play.filters.cors.CORSFilter"
|
||||
play.filters.cors {
|
||||
pathPrefixes = ["/"]
|
||||
allowedHttpMethods = ["POST", "GET", "PUT", "DELETE", "OPTIONS"]
|
||||
allowedHttpHeaders = ["Origin", "X-Requested-With", "Content-Type", "Accept", "Referer", "User-Agent", "X-Auth-Token"]
|
||||
supportsCredentials = false
|
||||
}
|
||||
|
||||
|
||||
# Global object class
|
||||
# ~~~~~
|
||||
# Define the Global object class for this application.
|
||||
# Default to Global in the root package.
|
||||
# application.global=Global
|
||||
|
||||
# Router
|
||||
# ~~~~~
|
||||
# Define the Router object to use for this application.
|
||||
# This router will be looked up first when the application is starting up,
|
||||
# so make sure this is the entry point.
|
||||
# Furthermore, it's assumed your route file is named properly.
|
||||
# So for an application router like `my.application.Router`,
|
||||
# you may need to define a router file `conf/my.application.routes`.
|
||||
# Default to Routes in the root package (and conf/routes)
|
||||
# application.router=my.application.Routes
|
||||
|
||||
# Database configuration
|
||||
# ~~~~~
|
||||
# You can declare as many datasources as you want.
|
||||
# By convention, the evolutions.evolutions datasource is named `evolutions.evolutions`
|
||||
#
|
||||
# db.evolutions.evolutions.driver=org.h2.Driver
|
||||
# db.evolutions.evolutions.url="jdbc:h2:mem:play"
|
||||
# db.evolutions.evolutions.user=sa
|
||||
# db.evolutions.evolutions.password=""
|
||||
slick {
|
||||
dbs {
|
||||
default {
|
||||
profile = "slick.jdbc.PostgresProfile$"
|
||||
db {
|
||||
driver = "org.postgresql.Driver"
|
||||
url = "jdbc:postgresql://wtest-core.crwogqkovwba.ap-southeast-1.rds.amazonaws.com/fms_api"
|
||||
user = "postgres"
|
||||
password = "R9QdHGHdXgk5YyiR"
|
||||
connectionTimeout = "10000"
|
||||
numThreads = 3 // evolutions is 20
|
||||
maxConnections = 3 // evolutions is 5*numThread
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Redis
|
||||
jedis {
|
||||
hosts = ["172.20.24.171:6379"]
|
||||
maxIdle = 80
|
||||
maxTotal = 80
|
||||
timeout = 3000
|
||||
maxWaitMillis = 3000
|
||||
isCluster = false
|
||||
database = 8
|
||||
testOnBorrow = true
|
||||
testOnReturn = true
|
||||
}
|
||||
|
||||
# Kafka
|
||||
provider.kafka.producerNum=6
|
||||
provider.kafka.producerClientID=fleet_api_prod
|
||||
#kafka.server.address="b-1.mkfleet.k48ako.c2.kafka.ap-southeast-1.amazonaws.com:9092,b-2.mkfleet.k48ako.c2.kafka.ap-southeast-1.amazonaws.com:9092"
|
||||
kafka.server.address="172.20.24.171:9092"
|
||||
|
||||
kafka.gps.topic=fleet-api-gps
|
||||
kafka.notification.topic=fleet-api-notification
|
||||
|
||||
# fms_gps Server (waylens-fms-clip)
|
||||
fms_gps.server.address = "http://172.20.24.171:9004"
|
||||
# notification push server (waylens-fms-notification)
|
||||
provider.waylens.notificationPusher.endpoint="http://172.20.24.171:8060/fmsKafka"
|
||||
|
||||
|
||||
# mptool server
|
||||
internal {
|
||||
# mptool which provides camera information
|
||||
mp {
|
||||
server = "https://horn.vidit.com.cn"
|
||||
getMPSyncInfoApi = "/api/mp/v1.0/cameras/"
|
||||
}
|
||||
}
|
||||
|
||||
# att
|
||||
provider.att {
|
||||
endpoint = "https://api-iotdevice.att.com/rws/api/v1"
|
||||
licensekey {
|
||||
default = "todo"
|
||||
}
|
||||
customer {
|
||||
default = "todo"
|
||||
}
|
||||
username {
|
||||
default = "todo"
|
||||
}
|
||||
custom {
|
||||
default = "todo"
|
||||
}
|
||||
defaultDataPlan {
|
||||
default = "todo"
|
||||
}
|
||||
overageLimitOverride {
|
||||
default = "PERMANENT_OVERRIDE"
|
||||
}
|
||||
billingDay = 19
|
||||
}
|
||||
|
||||
# clip server (waylens-fms-clip)
|
||||
provider.backend {
|
||||
endpoint="http://172.20.24.171:36458/v.1.0"
|
||||
key="dqy0S3MAdDLOp50R"
|
||||
endpointForRemuxMp4 ="http://172.20.24.171:16587/v.1.0"
|
||||
}
|
||||
|
||||
# AWS
|
||||
provider.aws {
|
||||
key = "AKIAVZFGACWSFXGVXCNA"
|
||||
secret = "X53JxRDMnGhB6A6uBmgJQZwj44YjQ4awbalE4bxH"
|
||||
region = "ap-southeast-1"
|
||||
|
||||
sns {
|
||||
region = "ap-southeast-1"
|
||||
fleetArn = "arn:aws:sns:ap-southeast-1:397632607652:wtest-sns-forward"
|
||||
protocol = "https"
|
||||
}
|
||||
|
||||
cloudFront {
|
||||
keyPairId = "K19X44RTV6O2RC"
|
||||
keyPairFile = "../wtest_fleet_private_key.pem"
|
||||
}
|
||||
}
|
||||
|
||||
# Wowza parameters
|
||||
provider.wowza {
|
||||
defaultPublishServer = "rtmp://54.255.235.62"
|
||||
appName = "live_fleet"
|
||||
publishUsername = "publishfleet"
|
||||
publishPassword = "E54d22d793"
|
||||
playSecret = "Sh4Tgsl2l43lB"
|
||||
playParam = "fleet"
|
||||
playProtocol = "rtmp"
|
||||
playProtocolCN = "rtmp"
|
||||
audio{
|
||||
host="54.255.235.62"
|
||||
port=1935
|
||||
appName="live_audio",
|
||||
publishUsername = "fleet_audio"
|
||||
publishPassword = "waylensfleet2019"
|
||||
}
|
||||
privateIPMap {
|
||||
#"18.116.56.97": "172.31.34.99"
|
||||
}
|
||||
|
||||
domainMap {
|
||||
"172.20.24.171": "54.255.235.62"
|
||||
}
|
||||
}
|
||||
|
||||
# Sendgrid Mail
|
||||
mail {
|
||||
midend.recipient = "midend@waylens.com"
|
||||
internal.from = "fleet@waylens.com"
|
||||
}
|
||||
|
||||
sendgrid {
|
||||
apikey="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"
|
||||
}
|
||||
|
||||
|
||||
# clip storage & cloudfront
|
||||
clip.storage.bucket = "/wtestfleet/clip/"
|
||||
clip.storage.address {
|
||||
default = "https://cdn.fleet.eveus.com/clip/"
|
||||
}
|
||||
|
||||
# streaming storage & cloudfront
|
||||
streaming.storage.bucket = "/wtestfleet/live_video/"
|
||||
streaming.storage.address {
|
||||
default = "https://cdn.fleet.eveus.com/live_video/"
|
||||
}
|
||||
|
||||
# firmware storage & cloudfront
|
||||
firmware.storage.bucket= "/wtestfleet/firmware"
|
||||
firmware.storage.address {
|
||||
default = "https://cdn.fleet.eveus.com/firmware/"
|
||||
}
|
||||
|
||||
# gpsReport.storage cloudfront
|
||||
gpsReport.storage.address {
|
||||
default = "https://cdn.fleet.eveus.com/gps_data_report/"
|
||||
}
|
||||
|
||||
# fleetReport.storage cloudfront
|
||||
fleetReport.storage.address {
|
||||
default = "https://cdn.fleet.eveus.com/fleet_report/"
|
||||
}
|
||||
|
||||
# log storage cloudfront
|
||||
log.storage.address = "https://cdn.fleet.eveus.com/log/"
|
||||
|
||||
# audio storage & cloudfront
|
||||
audio.storage.bucket="wtestfleet"
|
||||
audio.storage.address="https://cdn.fleet.eveus.com/audio/"
|
||||
|
||||
|
||||
clip.request.pendingTimeout = 604800
|
||||
clip.storage.maxAge {
|
||||
default = 15811200
|
||||
}
|
||||
clip.uploading.supportResume = true
|
||||
|
||||
|
||||
|
||||
provider.backend.useDomain=true
|
||||
|
||||
# log autoupload parameters
|
||||
log.autoUpload.enable=true
|
||||
log.autoUpload.periodInDay=30
|
||||
log.autoUpload.minIntervalInMinute=720
|
||||
|
||||
# test update parameters
|
||||
test.UpdateOldUnfinishedTrip=true
|
||||
test.UpdateLastSysTimeDurationInMs=3000
|
||||
|
||||
# some other parameters
|
||||
dataUsage.cacheTime = 21600
|
||||
ota.firstTime.delayInDays = 0
|
||||
server.waylensPricing = false
|
||||
# Camera automatically activated after register
|
||||
server.autoActivated = true
|
||||
# Disalbe iccid check
|
||||
server.checkIccid = false
|
||||
api.version="v3.05"
|
||||
server.env="MK"
|
27
wtest/config/fms-core/wtest_fleet_private_key.pem
Normal file
27
wtest/config/fms-core/wtest_fleet_private_key.pem
Normal file
@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpAIBAAKCAQEA42RCX28xcStNe9qYxmOEWU0VFn61RHMEjvKniIN6ajto/tT5
|
||||
RLAFBvBGjsEm1QSosaELRPNrFZacb0rfCioD1fI23VBLRWWaf/j4mTI4SJOH4ZNw
|
||||
HSTaxfkUOY4Vr0A4JHDXqh5a842hiHqPxTMNGqbP/NLqACeJBHHAWlrHdyt0UNXE
|
||||
m8qqvqZQFOZrnbEcZXnGrnRNnVxGjvHFp/rUh3UocWEnnaZv+BdzqkkKATvWXcOE
|
||||
W9ZyvnoTQgSbSDInwX5cw7t+W7CjvJ8QLWZAsw/Ndn624BtxgdudLoICFrEK/74p
|
||||
9eEZ5Wzm7x5kbSr+qbcjL2xFO/lhAiFtDqjsbQIDAQABAoIBAGPlLL9uQuM7qcuK
|
||||
aell2MO+eFAslAehG9SMx4rSb9nxhZvGBkflqB+3ONgIBL46UL3QSPoekeGnC8xc
|
||||
sQVvFcZMpUuutZKkIy6rOtNaW52Oqngv5GX5Rd8JIJh0UhRuevuPUz9aHIy4oMkr
|
||||
RrPUTKJzvBWOttwggjIgoudO0CgKa/yFgst6pXmYlkvLkVTqktE5yqiiQ4GowPVu
|
||||
5uTwA1VLzn29VLmdJsagdDPtBXSgSmKjLrNO1xvimSvT+cK5ezPrdM1eHHI8lhVF
|
||||
5HaBxSRzZI0YzM8YPoQ4q2DPSCuu9XxzTWlZ5nviUOgJ6HGYS6OyJPPn+xvjYGFo
|
||||
uXenj8UCgYEA95ruyadc9WtbWi9nb/egzbAZawG8sN81lRQbShuaxn8vKxAAedwi
|
||||
tkcs9pHs3execykBo39ksWx+AX5YFFkSt8ueqp6Ks9O9HrgfscNuSK8g3+pcLo8f
|
||||
kTz553cLfsNwTjPJYOdmWRY+qg1ki/mnYpEJb1WYHSpfVr2sTqs+NjMCgYEA6xni
|
||||
eCrXdRJvuoFwdjdNEQvsJ2faGhAIPiKtnRSLBFZwVXKO1My6YQQ2CKWBH2DhxWEv
|
||||
F3pvgsCFAmwknyGHCzAHQeO41daSMoxxRNsRjaIsbnsqnahDlz8eRAF4p/NGavH8
|
||||
3DifjGCGjT3RkG7iRLNFXu9dbQrm5/upFSxXct8CgYEA4F6yAWO6ld3p0whfyBNx
|
||||
0NHBxri1PuWVTXkB3Z60GylHGdOPSt3TSq+mq+zB4rv9PoerJ3gaS7iPWlUeBZpN
|
||||
nuVR6zRtZdT6bCrW9aOtfQnNVXque7ZQGbFSl4/Fh+IcE5FT647krNe+gyRNt5XM
|
||||
O0JIdW3vwIYUDKslx8ffQQcCgYEArjiSYSauX+13qqh9ZL16eOVy7YjCUYoL8a/V
|
||||
JJCyrFY6DLhGLGBCxd5PBH1RgKVU6eYo9acft69fYfot8VbxMlM3LZbJxH2r/ZWh
|
||||
4rrM+T5y2rSfUhH9dLmrfg3xEdTwHBSTo8a6RVbKnyRuhjAFsY+AGugbPdFUaBlQ
|
||||
pYYkj9UCgYBwUc6HaoSzuFocxn2hHXz99SxO3QZcILXuG3CC0lZn3n+tKJNOugYF
|
||||
RpqgQno3ieZIbYvYtXBJZYIy2JwFFIgrIBuhi5x0Dfn3qNEbghTyjurHCjD5Zwts
|
||||
HbyLHCAM6KUVPvXEeIKQiuRtitoErzV9y5dw+ihwttO7OcBT3cAN6Q==
|
||||
-----END RSA PRIVATE KEY-----
|
6
wtest/config/fms-gps/wtest.conf
Normal file
6
wtest/config/fms-gps/wtest.conf
Normal file
@ -0,0 +1,6 @@
|
||||
include "wtest_application"
|
||||
|
||||
compress.devices {
|
||||
count = 1
|
||||
currentValue = 0
|
||||
}
|
72
wtest/config/fms-gps/wtest_application.conf
Normal file
72
wtest/config/fms-gps/wtest_application.conf
Normal file
@ -0,0 +1,72 @@
|
||||
|
||||
play.http.secret.key="qrzrCr;PbI5tzSmTZ:BT3OCiSpG=pF7T0<;TDB^wKo8M]I_UdyeEbNm?lPFILJVG"
|
||||
play.i18n.langs=[ "en" ]
|
||||
|
||||
|
||||
play.modules {
|
||||
enabled += "modules.AppModule"
|
||||
enabled += "tasks.TrackTasksModule"
|
||||
enabled += "tasks.GpsWritingTasksModule"
|
||||
enabled += "tasks.TableTasksModule"
|
||||
}
|
||||
|
||||
play.evolutions {
|
||||
enabled = true
|
||||
autoApply = true
|
||||
}
|
||||
|
||||
slick {
|
||||
dbs {
|
||||
default {
|
||||
profile = "slick.jdbc.PostgresProfile$"
|
||||
db {
|
||||
driver = "org.postgresql.Driver"
|
||||
url = "jdbc:postgresql://wtest-gps.crwogqkovwba.ap-southeast-1.rds.amazonaws.com:5432/fms_gps"
|
||||
user = "postgres"
|
||||
password = "uXQM1D1QuV45I8Zw"
|
||||
connectionTimeout = "10000"
|
||||
numThreads = 10 // evolutions is 20
|
||||
maxConnections = 10 // evolutions is 5*numThread
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Filter
|
||||
play.filters {
|
||||
enabled += "play.filters.cors.CORSFilter"
|
||||
enabled += "play.filters.hosts.AllowedHostsFilter"
|
||||
cors {
|
||||
pathPrefixes = ["/"]
|
||||
allowedHttpMethods = ["POST", "GET", "PUT", "DELETE", "OPTIONS"]
|
||||
allowedHttpHeaders = ["Origin", "X-Requested-With", "Content-Type", "Accept", "Referer", "User-Agent", "X-Auth-Token"]
|
||||
supportsCredentials = false
|
||||
}
|
||||
hosts {
|
||||
allowed = ["."]
|
||||
}
|
||||
}
|
||||
|
||||
play.http {
|
||||
forwarded.trustedProxies = ["0.0.0.0/0"]
|
||||
parser.maxDiskBuffer = 209715200 //200M default
|
||||
parser.maxMemoryBuffer = 2M
|
||||
}
|
||||
|
||||
kafka {
|
||||
server.address="172.20.24.171:9092"
|
||||
gps {
|
||||
topic = "fleet-api-gps"
|
||||
insert.timeout = 300
|
||||
batchReceive = 100
|
||||
consumer.groupID = "fleet-gps-api-consumer-write2db"
|
||||
}
|
||||
}
|
||||
|
||||
kafka.gps.insert.timeout = 300
|
||||
|
||||
compress.devices {
|
||||
count = 1
|
||||
currentValue = 0
|
||||
}
|
19
wtest/config/fms-master/dev.conf
Normal file
19
wtest/config/fms-master/dev.conf
Normal file
@ -0,0 +1,19 @@
|
||||
akka {
|
||||
|
||||
actor.provider = "akka.cluster.ClusterActorRefProvider"
|
||||
|
||||
cluster {
|
||||
seed-nodes = [
|
||||
"akka.tcp://ClusterSystem@127.0.0.1:2551",
|
||||
"akka.tcp://ClusterSystem@127.0.0.1:2552"]
|
||||
|
||||
# auto-down-unreachable-after = 10s
|
||||
}
|
||||
|
||||
extensions = ["akka.cluster.client.ClusterClientReceptionist"]
|
||||
|
||||
loggers = ["akka.event.slf4j.Slf4jLogger"]
|
||||
loglevel = "DEBUG"
|
||||
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
|
||||
}
|
||||
redis.host = "192.168.20.97"
|
64
wtest/config/fms-master/logback.xml
Normal file
64
wtest/config/fms-master/logback.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<configuration>
|
||||
<!--appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||
<file>${application.home}/logs/application.log</file>
|
||||
<encoder>
|
||||
<pattern>%coloredLevel %logger{128} %d{yyyy-MM-dd HH:mm:ss.SSSXXX, UTC} in %thread %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender-->
|
||||
<property name="log.txtfile" value="/opt/cap/fms-master/logs/access_master"/>
|
||||
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<!--pattern>[%level] - [%d{yyyy-MM-dd HH:mm:ss.SSS, XXX}] - from [%logger] in %thread
|
||||
%n%message%n%xException%n</pattern-->
|
||||
<!--pattern>%coloredLevel %logger{15} - %message%n%xException{5}</pattern-->
|
||||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<appender name="TXT_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<FileNamePattern>${log.txtfile}_%d{yyyy-MM-dd}.log </FileNamePattern>
|
||||
</rollingPolicy>
|
||||
|
||||
<encoder>
|
||||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!--logger name="play" level="DEBUG"/-->
|
||||
<logger name="play" level="INFO"/>
|
||||
<!--logger name="application" level="DEBUG"/-->
|
||||
<logger name="application" level="INFO"/>
|
||||
<logger name="models" level="INFO"/>
|
||||
<logger name="controllers" level="INFO"/>
|
||||
<logger name="actors" level="DEBUG"/>
|
||||
<logger name="utils" level="INFO"/>
|
||||
<logger name="test" level="INFO"/>
|
||||
<logger name="com.waylens.lib" level="INFO"/>
|
||||
<logger name="ch.qos" level="DEBUG"/>
|
||||
|
||||
|
||||
<!-- Off these ones as they are annoying, and anyway we manage configuration ourself -->
|
||||
<logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF"/>
|
||||
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF"/>
|
||||
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF"/>
|
||||
<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF"/>
|
||||
<logger name="com.mohiva.play.silhouette" level="DEBUG"/>
|
||||
<logger name="org.apache.hadoop.mapred" level="DEBUG"/>
|
||||
<!--logger name="io.netty" level="TRACE"/-->
|
||||
<!--logger name="org.asynchttpclient" level="TRACE"/-->
|
||||
<logger name="akka" level="INFO"/>
|
||||
<logger name="slick" level="INFO"/>
|
||||
<!--logger name="scala.concurrent" level="TRACE"/-->
|
||||
<!--logger name="com.ning" level="TRACE"/-->
|
||||
<!--logger name="play.api.mvc.Action" level="TRACE"/-->
|
||||
<!--logger name="com.zaxxer.hikari" level="TRACE"/-->
|
||||
|
||||
<root level="DEBUG">
|
||||
<appender-ref ref="TXT_FILE"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
|
||||
</configuration>
|
28
wtest/config/fms-master/master1.conf
Normal file
28
wtest/config/fms-master/master1.conf
Normal file
@ -0,0 +1,28 @@
|
||||
akka {
|
||||
|
||||
actor.provider = "akka.cluster.ClusterActorRefProvider"
|
||||
|
||||
remote {
|
||||
netty {
|
||||
tcp {
|
||||
hostname = 172.20.24.171
|
||||
port = 2551
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cluster {
|
||||
seed-nodes = [
|
||||
"akka.tcp://ClusterSystem@172.20.24.171:2551",
|
||||
"akka.tcp://ClusterSystem@172.20.24.171:2552"]
|
||||
|
||||
# auto-down-unreachable-after = 10s
|
||||
}
|
||||
|
||||
extensions = ["akka.cluster.client.ClusterClientReceptionist"]
|
||||
|
||||
loggers = ["akka.event.slf4j.Slf4jLogger"]
|
||||
loglevel = "DEBUG"
|
||||
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
|
||||
}
|
||||
redis.host = "172.20.24.171"
|
26
wtest/config/fms-master/master2.conf
Normal file
26
wtest/config/fms-master/master2.conf
Normal file
@ -0,0 +1,26 @@
|
||||
akka {
|
||||
|
||||
actor.provider = "akka.cluster.ClusterActorRefProvider"
|
||||
|
||||
remote {
|
||||
netty.tcp {
|
||||
hostname = 127.0.0.1
|
||||
port = 2552
|
||||
}
|
||||
}
|
||||
|
||||
cluster {
|
||||
seed-nodes = [
|
||||
"akka.tcp://ClusterSystem@127.0.0.1:2551",
|
||||
"akka.tcp://ClusterSystem@127.0.0.1:2552"]
|
||||
|
||||
# auto-down-unreachable-after = 10s
|
||||
}
|
||||
|
||||
extensions = ["akka.cluster.client.ClusterClientReceptionist"]
|
||||
|
||||
loggers = ["akka.event.slf4j.Slf4jLogger"]
|
||||
loglevel = "DEBUG"
|
||||
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
|
||||
}
|
||||
redis.host = "172.20.24.171"
|
72
wtest/config/fms-notification/config.yaml
Normal file
72
wtest/config/fms-notification/config.yaml
Normal file
@ -0,0 +1,72 @@
|
||||
kafka:
|
||||
consumerID: fms-pusher-prod
|
||||
topic:
|
||||
gps: fleet-api-gps
|
||||
general: fleet-api-notification
|
||||
group:
|
||||
gps: fms-pusher-prod-group
|
||||
general: fms-pusher-prod-group
|
||||
brokers:
|
||||
- 172.20.24.171:9092
|
||||
minBytes: 1e3
|
||||
maxBytes: 2e6
|
||||
maxWait: 5000
|
||||
maxDealRoutineNum: 10
|
||||
setOffset:
|
||||
generalType: false
|
||||
generalValue:
|
||||
gpsType: false
|
||||
gpsValue:
|
||||
commitInterval:
|
||||
gps: 1000
|
||||
general: 0
|
||||
|
||||
# Type: false/offset/timestamp
|
||||
|
||||
aws:
|
||||
config:
|
||||
region: ap-southeast-1
|
||||
credentialsID: AKIAVZFGACWSM44VD4G6
|
||||
credentialsSecret: yzuJPMnsDxDkO6RJGaeFEDSzPbOefgGbZXMOxKwX
|
||||
kafka:
|
||||
topicArn: arn:aws:sns:ap-southeast-1:397632607652:wtest-sns-forward
|
||||
cloudWatch:
|
||||
namespace: FleetAPIWtest/ServiceMetrics
|
||||
serviceStatus: DealNotificationPushStatusProd
|
||||
timeDiff: fms_kafka_process_latency
|
||||
sampleInterval:
|
||||
gps: 10
|
||||
general: 1
|
||||
|
||||
gin:
|
||||
maxTime: 12
|
||||
port: :8060
|
||||
|
||||
postGre:
|
||||
maxIdleConns: 2
|
||||
maxOpenConns: 5
|
||||
host: wtest-notification.crwogqkovwba.ap-southeast-1.rds.amazonaws.com
|
||||
port: 5432
|
||||
user: postgres
|
||||
dbname: fms_notification
|
||||
password: tKY6H9iLnHL4D08O
|
||||
|
||||
|
||||
redis:
|
||||
index: 9
|
||||
network: tcp
|
||||
# address: fleet-dev.hreonp.ng.0001.use1.cache.amazonaws.com:6379
|
||||
address: 172.20.24.171:6379
|
||||
|
||||
|
||||
sendgrid:
|
||||
apiKey: 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
|
||||
senderName: fms-pusher-mk
|
||||
senderAddress: fms-pusher-mk@waylens.com
|
||||
midEndName: mk-notification
|
||||
midEndEmail: limin.zhang@eveus.com
|
||||
|
||||
gps:
|
||||
biasTime: 5
|
||||
|
||||
fmsGpsServerAddress: http://172.20.24.171:9004
|
24
wtest/config/fms-sns/config.conf
Normal file
24
wtest/config/fms-sns/config.conf
Normal file
@ -0,0 +1,24 @@
|
||||
//ronglian
|
||||
RLbaseUrl=https://app.cloopen.com:8883
|
||||
RLaccountSid=8a48b5514fba2f87014fc228cc0f1312
|
||||
RLappId=8aaf070863399ed901634dceea3c0f94
|
||||
RLauthToken=85cd39af239441f89437583a2fbb6584
|
||||
|
||||
|
||||
//sendgrid Email
|
||||
senderName=no-reply
|
||||
senderAddress=no-reply@waylens.com
|
||||
SENDGRID_API_KEY=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
|
||||
|
||||
phoneList=+8613818522209,+8618821216962,+8618001708850
|
||||
emailList=midend@waylens.com,vincent.sun@waylens.com,Farshid@waylens.com,npodila@fleetup.com,baddison@insightmobiledata.com
|
||||
recoverEmailList=yu.shi@waylens.com
|
||||
|
||||
//ali
|
||||
aliAccessKeyId=LTAI4G39Lr3MdMWfji59HxzG
|
||||
aliAccessSecret=V2kL0kSSUjKnkNsY5tqseTC1ZCWSQy
|
||||
ttsCode=TTS_203197230
|
||||
aliPhoneList=+8613818522209
|
||||
|
||||
|
||||
|
58
wtest/nginx/api.conf
Normal file
58
wtest/nginx/api.conf
Normal file
@ -0,0 +1,58 @@
|
||||
upstream api {
|
||||
server 172.20.24.171:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name api.prd.eveus.com;
|
||||
|
||||
# SSL is enabled forcefully
|
||||
location / {
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name api.prd.eveus.com;
|
||||
|
||||
ssl_certificate /etc/nginx/keys/wild.eveus.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/keys/wild.eveus.com/privkey.pem;
|
||||
# enable OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:PSK-RC4-SHA:!aNULL:!MD5:!DSS:!EDH;
|
||||
|
||||
location ~ /api/4g {
|
||||
proxy_pass http://api;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
# disable any limits to avoid HTTP 413 for large image uploads
|
||||
client_max_body_size 0;
|
||||
|
||||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
||||
chunked_transfer_encoding on;
|
||||
|
||||
proxy_pass http://api;
|
||||
proxy_set_header SSL_CLIENT_CERT $a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
#proxy_set_header Authorization "";
|
||||
#auth_basic "Access Eveus";
|
||||
#auth_basic_user_file /etc/nginx/keys/htpasswd;
|
||||
}
|
||||
}
|
||||
|
45
wtest/nginx/default.conf
Normal file
45
wtest/nginx/default.conf
Normal file
@ -0,0 +1,45 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:9000;
|
||||
#root /usr/share/nginx/html;
|
||||
#index index.html index.htm;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# proxy_pass http://127.0.0.1;
|
||||
#}
|
||||
|
||||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# root html;
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||
# include fastcgi_params;
|
||||
#}
|
||||
|
||||
# deny access to .htaccess files, if Apache's document root
|
||||
# concurs with nginx's one
|
||||
#
|
||||
#location ~ /\.ht {
|
||||
# deny all;
|
||||
#}
|
||||
}
|
||||
|
58
wtest/nginx/kowl.conf
Normal file
58
wtest/nginx/kowl.conf
Normal file
@ -0,0 +1,58 @@
|
||||
upstream kowl {
|
||||
server 172.20.24.171:8080;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name kowl.prd.eveus.com;
|
||||
|
||||
# SSL is enabled forcefully
|
||||
location / {
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name kowl.prd.eveus.com;
|
||||
|
||||
ssl_certificate /etc/nginx/keys/wild.eveus.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/keys/wild.eveus.com/privkey.pem;
|
||||
# enable OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:PSK-RC4-SHA:!aNULL:!MD5:!DSS:!EDH;
|
||||
|
||||
|
||||
location ~ /api/topics/(.*)/messages$ {
|
||||
proxy_pass http://kowl;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location / {
|
||||
# disable any limits to avoid HTTP 413 for large image uploads
|
||||
client_max_body_size 0;
|
||||
|
||||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
||||
chunked_transfer_encoding on;
|
||||
|
||||
proxy_pass http://kowl;
|
||||
proxy_set_header SSL_CLIENT_CERT $a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
#proxy_set_header Authorization "";
|
||||
#auth_basic "Access Eveus";
|
||||
#auth_basic_user_file /etc/nginx/keys/htpasswd;
|
||||
}
|
||||
}
|
||||
|
47
wtest/nginx/notification.conf
Normal file
47
wtest/nginx/notification.conf
Normal file
@ -0,0 +1,47 @@
|
||||
upstream notification {
|
||||
server 172.20.24.171:9006;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name notification.prd.eveus.com;
|
||||
|
||||
# SSL is enabled forcefully
|
||||
location / {
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name notification.prd.eveus.com;
|
||||
|
||||
ssl_certificate /etc/nginx/keys/wild.eveus.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/keys/wild.eveus.com/privkey.pem;
|
||||
# enable OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:PSK-RC4-SHA:!aNULL:!MD5:!DSS:!EDH;
|
||||
|
||||
|
||||
location / {
|
||||
# disable any limits to avoid HTTP 413 for large image uploads
|
||||
client_max_body_size 0;
|
||||
|
||||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
||||
chunked_transfer_encoding on;
|
||||
|
||||
proxy_pass http://notification;
|
||||
proxy_set_header SSL_CLIENT_CERT $a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
#proxy_set_header Authorization "";
|
||||
#auth_basic "Access Eveus";
|
||||
#auth_basic_user_file /etc/nginx/keys/htpasswd;
|
||||
}
|
||||
}
|
||||
|
47
wtest/nginx/sns.conf
Normal file
47
wtest/nginx/sns.conf
Normal file
@ -0,0 +1,47 @@
|
||||
upstream sns {
|
||||
server 172.20.24.171:9006;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name sns.prd.eveus.com;
|
||||
|
||||
# SSL is enabled forcefully
|
||||
location / {
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name sns.prd.eveus.com;
|
||||
|
||||
ssl_certificate /etc/nginx/keys/wild.eveus.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/keys/wild.eveus.com/privkey.pem;
|
||||
# enable OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:PSK-RC4-SHA:!aNULL:!MD5:!DSS:!EDH;
|
||||
|
||||
|
||||
location / {
|
||||
# disable any limits to avoid HTTP 413 for large image uploads
|
||||
client_max_body_size 0;
|
||||
|
||||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
||||
chunked_transfer_encoding on;
|
||||
|
||||
proxy_pass http://sns;
|
||||
proxy_set_header SSL_CLIENT_CERT $a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
#proxy_set_header Authorization "";
|
||||
#auth_basic "Access Eveus";
|
||||
#auth_basic_user_file /etc/nginx/keys/htpasswd;
|
||||
}
|
||||
}
|
||||
|
14
wtest/service/fms-core.service
Normal file
14
wtest/service/fms-core.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=fms-core
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-core/fms-core
|
||||
ExecStart=/opt/cap/fms-core/fms-core/bin/fms -Dconfig.file=../application.conf
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
14
wtest/service/fms-gps.service
Normal file
14
wtest/service/fms-gps.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=fms-gps
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-gps/fms-gps
|
||||
ExecStart=/opt/cap/fms-gps/fms-gps/bin/fms_gps -Dconfig.file=../wtest.conf -Dhttp.port=9004
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
14
wtest/service/fms-master.service
Normal file
14
wtest/service/fms-master.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=fms-master
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-master
|
||||
ExecStart=/usr/local/jdk1.8.0/bin/java -Dconfig.file=master1.conf -jar app/fms-master.jar 2551
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
14
wtest/service/fms-master2.service
Normal file
14
wtest/service/fms-master2.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=fms-master
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-master
|
||||
ExecStart=/usr/local/jdk1.8.0/bin/java -Dconfig.file=master1.conf -jar app/fms-master.jar 2552
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
17
wtest/service/fms-notification.service
Normal file
17
wtest/service/fms-notification.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=fms-notification
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
Environment="APP_NAME=wtest"
|
||||
Environment="SERVICE_NAME=notification"
|
||||
Environment="POD_NAME=notification"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-notification
|
||||
ExecStart=/opt/cap/fms-notification/fms-notification
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
17
wtest/service/fms-sns.service
Normal file
17
wtest/service/fms-sns.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=fms-sns
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Environment="TZ=Asia/Shanghai"
|
||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
||||
Environment="APP_NAME=wtest"
|
||||
Environment="SERVICE_NAME=sns"
|
||||
Environment="POD_NAME=sns"
|
||||
User=ubuntu
|
||||
WorkingDirectory=/opt/cap/fms-sns
|
||||
ExecStart=/opt/cap/fms-sns/fms-sns
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
225
wtest/wowza/Server.xml
Normal file
225
wtest/wowza/Server.xml
Normal file
@ -0,0 +1,225 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="3">
|
||||
<Server>
|
||||
<Name>Wowza Streaming Engine</Name>
|
||||
<Description>Wowza Streaming Engine is robust, customizable, and scalable server software that powers reliable streaming of high-quality video and audio to any device, anywhere.</Description>
|
||||
<RESTInterface>
|
||||
<Enable>true</Enable>
|
||||
<IPAddress>*</IPAddress>
|
||||
<Port>8087</Port>
|
||||
<!-- none, basic, digest, remotehttp, digestfile-->
|
||||
<AuthenticationMethod>basic</AuthenticationMethod>
|
||||
<!-- cleartext, bcrypt, md5, sha256 -->
|
||||
<PasswordEncodingScheme>bcrypt</PasswordEncodingScheme>
|
||||
<DiagnosticURLEnable>true</DiagnosticURLEnable>
|
||||
<SSLConfig>
|
||||
<Enable>false</Enable>
|
||||
<KeyStorePath></KeyStorePath>
|
||||
<KeyStorePassword></KeyStorePassword>
|
||||
<KeyStoreType>JKS</KeyStoreType>
|
||||
<SSLProtocol>TLS</SSLProtocol>
|
||||
<Algorithm>SunX509</Algorithm>
|
||||
<CipherSuites></CipherSuites>
|
||||
<Protocols></Protocols>
|
||||
</SSLConfig>
|
||||
<IPWhiteList>127.0.0.1</IPWhiteList>
|
||||
<IPBlackList></IPBlackList>
|
||||
<EnableXMLFile>false</EnableXMLFile>
|
||||
<DocumentationServerEnable>false</DocumentationServerEnable>
|
||||
<DocumentationServerPort>8089</DocumentationServerPort>
|
||||
<!-- none(only) -->
|
||||
<DocumentationServerAuthenticationMethod>none</DocumentationServerAuthenticationMethod>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</RESTInterface>
|
||||
<CommandInterface>
|
||||
<HostPort>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<IpAddress>*</IpAddress>
|
||||
<Port>8083</Port>
|
||||
</HostPort>
|
||||
</CommandInterface>
|
||||
<AdminInterface>
|
||||
<!-- Objects exposed through JMX interface: Server, VHost, VHostItem, Application, ApplicationInstance, MediaCaster, Module, Client, MediaStream, SharedObject, Acceptor, IdleWorker -->
|
||||
<ObjectList>Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker</ObjectList>
|
||||
</AdminInterface>
|
||||
<Stats>
|
||||
<Enable>true</Enable>
|
||||
</Stats>
|
||||
<!-- JMXUrl: service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -->
|
||||
<JMXRemoteConfiguration>
|
||||
<Enable>false</Enable>
|
||||
<IpAddress>localhost</IpAddress> <!-- set to localhost or internal ip address if behind NAT -->
|
||||
<RMIServerHostName>localhost</RMIServerHostName> <!-- set to external ip address or domain name if behind NAT -->
|
||||
<RMIConnectionPort>8084</RMIConnectionPort>
|
||||
<RMIRegistryPort>8085</RMIRegistryPort>
|
||||
<Authenticate>true</Authenticate>
|
||||
<PasswordFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.password</PasswordFile>
|
||||
<AccessFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.access</AccessFile>
|
||||
<SSLSecure>false</SSLSecure>
|
||||
</JMXRemoteConfiguration>
|
||||
<UserAgents>Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)</UserAgents>
|
||||
<Streams>
|
||||
<DefaultStreamPrefix>mp4</DefaultStreamPrefix>
|
||||
</Streams>
|
||||
<ServerListeners>
|
||||
<ServerListener>
|
||||
<BaseClass>com.wowza.wms.mediacache.impl.MediaCacheServerListener</BaseClass>
|
||||
</ServerListener>
|
||||
|
||||
<!--
|
||||
<ServerListener>
|
||||
<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener</BaseClass>
|
||||
</ServerListener>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<ServerListener>
|
||||
<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerSender</BaseClass>
|
||||
</ServerListener>
|
||||
-->
|
||||
|
||||
<ServerListener>
|
||||
<BaseClass>com.wowza.wms.plugin.loadbalancer.listeners.ServerListener</BaseClass>
|
||||
</ServerListener>
|
||||
</ServerListeners>
|
||||
<VHostListeners>
|
||||
<VHostListener>
|
||||
<BaseClass>com.wowza.wms.plugin.loadbalancer.listeners.VHostListener</BaseClass>
|
||||
</VHostListener>
|
||||
</VHostListeners>
|
||||
<HandlerThreadPool>
|
||||
<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
|
||||
</HandlerThreadPool>
|
||||
<TransportThreadPool>
|
||||
<PoolSize>${com.wowza.wms.TuningAuto}</PoolSize>
|
||||
</TransportThreadPool>
|
||||
<RTP>
|
||||
<DatagramStartingPort>6970</DatagramStartingPort>
|
||||
<DatagramPortSharing>false</DatagramPortSharing>
|
||||
</RTP>
|
||||
<Manager>
|
||||
<!-- Properties defined are used by the Manager -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</Manager>
|
||||
<Transcoder>
|
||||
<PluginPaths>
|
||||
<QuickSync></QuickSync>
|
||||
</PluginPaths>
|
||||
</Transcoder>
|
||||
<!-- Properties defined here will be added to the IServer.getProperties() collection -->
|
||||
<Properties>
|
||||
<Property>
|
||||
<Name>loadbalanceType</Name>
|
||||
<Value>Server,Client</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceKey</Name>
|
||||
<Value>8caf20bfa1ab3024</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceDebugServerDecision</Name>
|
||||
<Value>True</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceServerDecisionOrder</Name>
|
||||
<Value>Connection, Bandwidth</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceServerListenApplicationNames</Name>
|
||||
<Value></Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
|
||||
<!--Property>
|
||||
<Name>loadbalanceServerIgnoreClients</Name>
|
||||
<Value>none</Value>
|
||||
<Type>String</Type>
|
||||
</Property-->
|
||||
<Property>
|
||||
<Name>loadbalanceServerListenPort</Name>
|
||||
<Value>1936</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceDebug</Name>
|
||||
<Value>False</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
|
||||
<Property>
|
||||
<Name>loadbalanceDebugServerExtension</Name>
|
||||
<Value>False</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceDebugClientProcess</Name>
|
||||
<Value>False</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceDebugClientExtension</Name>
|
||||
<Value>False</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceDebugClientCommunications</Name>
|
||||
<Value>False</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
|
||||
<!-- the below is Client Server config -->
|
||||
<Property>
|
||||
<Name>loadbalanceServerIP</Name>
|
||||
<!--Value>172.31.9.208,172.31.27.193</Value-->
|
||||
<Value>172.20.24.171</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceServerPort</Name>
|
||||
<Value>1936</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientName</Name>
|
||||
<Value>wowza_01</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceApplicationsInclude</Name>
|
||||
<Value>live_fleet</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientConnectionEnable</Name>
|
||||
<Value>on</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientConnectionLimit</Name>
|
||||
<Value>200</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientCountSourceClient</Name>
|
||||
<Value>True</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientForceIP</Name>
|
||||
<Value>54.255.235.62</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>loadbalanceClientForcePort</Name>
|
||||
<Value>1935</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Server>
|
||||
</Root>
|
330
wtest/wowza/VHost.xml
Normal file
330
wtest/wowza/VHost.xml
Normal file
@ -0,0 +1,330 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="2">
|
||||
<VHost>
|
||||
<Description></Description>
|
||||
<HostPortList>
|
||||
<HostPort>
|
||||
<Name>Default Streaming</Name>
|
||||
<Type>Streaming</Type>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<IpAddress>*</IpAddress>
|
||||
<!-- Separate multiple ports with commas -->
|
||||
<!-- 80: HTTP, RTMPT -->
|
||||
<!-- 554: RTSP -->
|
||||
<Port>1935</Port>
|
||||
<HTTPIdent2Response></HTTPIdent2Response>
|
||||
<SocketConfiguration>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<!-- suggested settings for video on demand applications -->
|
||||
<ReceiveBufferSize>65000</ReceiveBufferSize>
|
||||
<ReadBufferSize>65000</ReadBufferSize>
|
||||
<SendBufferSize>65000</SendBufferSize>
|
||||
<!-- suggest settings for low latency chat and video recording applications
|
||||
<ReceiveBufferSize>32000</ReceiveBufferSize>
|
||||
<ReadBufferSize>32000</ReadBufferSize>
|
||||
<SendBufferSize>32000</SendBufferSize>
|
||||
-->
|
||||
<KeepAlive>true</KeepAlive>
|
||||
<!-- <TrafficClass>0</TrafficClass> -->
|
||||
<!-- <OobInline>false</OobInline> -->
|
||||
<!-- <SoLingerTime>-1</SoLingerTime> -->
|
||||
<!-- <TcpNoDelay>false</TcpNoDelay> -->
|
||||
<AcceptorBackLog>100</AcceptorBackLog>
|
||||
</SocketConfiguration>
|
||||
<HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegdashstreaming</HTTPStreamerAdapterIDs>
|
||||
<HTTPProviders>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
|
||||
<RequestFilters>*crossdomain.xml</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
|
||||
<RequestFilters>*clientaccesspolicy.xml</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
|
||||
<RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
|
||||
<RequestFilters>*ServerVersion</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
</HTTPProviders>
|
||||
</HostPort>
|
||||
<HostPort>
|
||||
<Name>Default Admin</Name>
|
||||
<Type>Admin</Type>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<IpAddress>*</IpAddress>
|
||||
<Port>8086</Port>
|
||||
<HTTPIdent2Response></HTTPIdent2Response>
|
||||
<SocketConfiguration>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>16000</ReceiveBufferSize>
|
||||
<ReadBufferSize>16000</ReadBufferSize>
|
||||
<SendBufferSize>16000</SendBufferSize>
|
||||
<KeepAlive>true</KeepAlive>
|
||||
<AcceptorBackLog>100</AcceptorBackLog>
|
||||
</SocketConfiguration>
|
||||
<HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
|
||||
<HTTPProviders>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
|
||||
<RequestFilters>serverinfo*</RequestFilters>
|
||||
<AuthenticationMethod>admin-basic</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
|
||||
<RequestFilters>connectioninfo*</RequestFilters>
|
||||
<AuthenticationMethod>admin-basic</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
|
||||
<RequestFilters>connectioncounts*</RequestFilters>
|
||||
<AuthenticationMethod>admin-basic</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail</BaseClass>
|
||||
<RequestFilters>transcoderthumbnail*</RequestFilters>
|
||||
<AuthenticationMethod>admin-basic</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
|
||||
<RequestFilters>medialist*</RequestFilters>
|
||||
<AuthenticationMethod>admin-basic</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
|
||||
<RequestFilters>*ServerVersion</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
</HTTPProviders>
|
||||
</HostPort>
|
||||
<HostPort>
|
||||
<Name>loadbalancer</Name>
|
||||
<Port>1936</Port>
|
||||
<IpAddress>*</IpAddress>
|
||||
<Type>Admin</Type>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<HTTPIdent2Response></HTTPIdent2Response>
|
||||
<SocketConfiguration>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>16000</ReceiveBufferSize>
|
||||
<ReadBufferSize>16000</ReadBufferSize>
|
||||
<SendBufferSize>16000</SendBufferSize>
|
||||
<KeepAlive>true</KeepAlive>
|
||||
<AcceptorBackLog>100</AcceptorBackLog>
|
||||
</SocketConfiguration>
|
||||
<HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
|
||||
<HTTPProviders>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
|
||||
<RequestFilters>serverinfo*</RequestFilters>
|
||||
<AuthenticationMethod>admin-digest</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
|
||||
<RequestFilters>connectioninfo*</RequestFilters>
|
||||
<AuthenticationMethod>admin-digest</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
|
||||
<RequestFilters>connectioncounts*</RequestFilters>
|
||||
<AuthenticationMethod>admin-digest</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail</BaseClass>
|
||||
<RequestFilters>transcoderthumbnail*</RequestFilters>
|
||||
<AuthenticationMethod>admin-digest</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
|
||||
<RequestFilters>medialist*</RequestFilters>
|
||||
<AuthenticationMethod>admin-digest</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
<HTTPProvider>
|
||||
<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
|
||||
<RequestFilters>*ServerVersion</RequestFilters>
|
||||
<AuthenticationMethod>none</AuthenticationMethod>
|
||||
</HTTPProvider>
|
||||
</HTTPProviders>
|
||||
</HostPort>
|
||||
</HostPortList>
|
||||
<HTTPStreamerAdapters>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>smoothstreaming</ID>
|
||||
<Name>smoothstreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>cupertinostreaming</ID>
|
||||
<Name>cupertinostreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>sanjosestreaming</ID>
|
||||
<Name>sanjosestreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>dvrchunkstreaming</ID>
|
||||
<Name>dvrchunkstreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>mpegdashstreaming</ID>
|
||||
<Name>mpegdashstreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>tsstreaming</ID>
|
||||
<Name>tsstreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
<HTTPStreamerAdapter>
|
||||
<ID>webmstreaming</ID>
|
||||
<Name>webmstreaming</Name>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamerAdapter>
|
||||
</HTTPStreamerAdapters>
|
||||
<!-- When set to zero, thread pool configuration is done in Server.xml -->
|
||||
<HandlerThreadPool>
|
||||
<PoolSize>0</PoolSize>
|
||||
</HandlerThreadPool>
|
||||
<TransportThreadPool>
|
||||
<PoolSize>0</PoolSize>
|
||||
</TransportThreadPool>
|
||||
<IdleWorkers>
|
||||
<WorkerCount>${com.wowza.wms.TuningAuto}</WorkerCount>
|
||||
<CheckFrequency>50</CheckFrequency>
|
||||
<MinimumWaitTime>5</MinimumWaitTime>
|
||||
</IdleWorkers>
|
||||
<NetConnections>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<IdleFrequency>250</IdleFrequency>
|
||||
<SocketConfiguration>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>65000</ReceiveBufferSize>
|
||||
<ReadBufferSize>65000</ReadBufferSize>
|
||||
<SendBufferSize>65000</SendBufferSize>
|
||||
<KeepAlive>true</KeepAlive>
|
||||
<!-- <TrafficClass>0</TrafficClass> -->
|
||||
<!-- <OobInline>false</OobInline> -->
|
||||
<!-- <SoLingerTime>-1</SoLingerTime> -->
|
||||
<!-- <TcpNoDelay>false</TcpNoDelay> -->
|
||||
<AcceptorBackLog>100</AcceptorBackLog>
|
||||
</SocketConfiguration>
|
||||
</NetConnections>
|
||||
<MediaCasters>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
<SocketConfiguration>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>65000</ReceiveBufferSize>
|
||||
<ReadBufferSize>65000</ReadBufferSize>
|
||||
<SendBufferSize>65000</SendBufferSize>
|
||||
<KeepAlive>true</KeepAlive>
|
||||
<!-- <TrafficClass>0</TrafficClass> -->
|
||||
<!-- <OobInline>false</OobInline> -->
|
||||
<!-- <SoLingerTime>-1</SoLingerTime> -->
|
||||
<!-- <TcpNoDelay>false</TcpNoDelay> -->
|
||||
<ConnectionTimeout>10000</ConnectionTimeout>
|
||||
</SocketConfiguration>
|
||||
</MediaCasters>
|
||||
<LiveStreamTranscoders>
|
||||
<MaximumConcurrentTranscodes>0</MaximumConcurrentTranscodes>
|
||||
</LiveStreamTranscoders>
|
||||
<HTTPTunnel>
|
||||
<KeepAliveTimeout>2000</KeepAliveTimeout>
|
||||
</HTTPTunnel>
|
||||
<Client>
|
||||
<ClientTimeout>90000</ClientTimeout>
|
||||
<IdleFrequency>250</IdleFrequency>
|
||||
</Client>
|
||||
<!-- RTP/Authentication/Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
|
||||
<RTP>
|
||||
<IdleFrequency>75</IdleFrequency>
|
||||
<DatagramConfiguration>
|
||||
<Incoming>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>2048000</ReceiveBufferSize>
|
||||
<SendBufferSize>65000</SendBufferSize>
|
||||
<!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
|
||||
<!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
|
||||
<!-- <TrafficClass>0</TrafficClass> -->
|
||||
<MulticastTimeout>50</MulticastTimeout>
|
||||
<DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
|
||||
</Incoming>
|
||||
<Outgoing>
|
||||
<ReuseAddress>true</ReuseAddress>
|
||||
<ReceiveBufferSize>65000</ReceiveBufferSize>
|
||||
<SendBufferSize>256000</SendBufferSize>
|
||||
<!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
|
||||
<!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
|
||||
<!-- <TrafficClass>0</TrafficClass> -->
|
||||
<MulticastTimeout>50</MulticastTimeout>
|
||||
<DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
|
||||
</Outgoing>
|
||||
</DatagramConfiguration>
|
||||
<UnicastIncoming>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
</UnicastIncoming>
|
||||
<UnicastOutgoing>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
</UnicastOutgoing>
|
||||
<MulticastIncoming>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
</MulticastIncoming>
|
||||
<MulticastOutgoing>
|
||||
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
|
||||
</MulticastOutgoing>
|
||||
</RTP>
|
||||
<HTTPProvider>
|
||||
<KeepAliveTimeout>2000</KeepAliveTimeout>
|
||||
<EndConnectionTimeout>10000</EndConnectionTimeout>
|
||||
<SlowConnectionBitrate>64000</SlowConnectionBitrate>
|
||||
<IdleFrequency>250</IdleFrequency>
|
||||
</HTTPProvider>
|
||||
<WebSocket>
|
||||
<MaximumMessageSize>512k</MaximumMessageSize>
|
||||
<PacketFragmentationSize>0</PacketFragmentationSize>
|
||||
<MaskOutgoingMessages>false</MaskOutgoingMessages>
|
||||
<IdleFrequency>250</IdleFrequency>
|
||||
<ValidationFrequency>20000</ValidationFrequency>
|
||||
<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
|
||||
<PingTimeout>12000</PingTimeout>
|
||||
</WebSocket>
|
||||
<Application>
|
||||
<ApplicationTimeout>60000</ApplicationTimeout>
|
||||
<PingTimeout>12000</PingTimeout>
|
||||
<UnidentifiedSessionTimeout>30000</UnidentifiedSessionTimeout>
|
||||
<ValidationFrequency>20000</ValidationFrequency>
|
||||
<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
|
||||
<MaximumSetBufferTime>60000</MaximumSetBufferTime>
|
||||
</Application>
|
||||
<StartStartupStreams>true</StartStartupStreams>
|
||||
<Manager>
|
||||
<TestPlayer>
|
||||
<IpAddress>${com.wowza.wms.HostPort.IpAddress}</IpAddress>
|
||||
<Port>${com.wowza.wms.HostPort.FirstStreamingPort}</Port>
|
||||
<SSLEnable>${com.wowza.wms.HostPort.SSLEnable}</SSLEnable>
|
||||
</TestPlayer>
|
||||
<!-- Properties defined are used by the Manager -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</Manager>
|
||||
<!-- Properties defined here will be added to the IVHost.getProperties() collection -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</VHost>
|
||||
</Root>
|
395
wtest/wowza/live_fleet/Application.xml
Normal file
395
wtest/wowza/live_fleet/Application.xml
Normal file
@ -0,0 +1,395 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Root version="1">
|
||||
<Application>
|
||||
<Name>live_fleet</Name>
|
||||
<AppType>Live</AppType>
|
||||
<Description></Description>
|
||||
<!-- Uncomment to set application level timeout values
|
||||
<ApplicationTimeout>60000</ApplicationTimeout>
|
||||
<PingTimeout>12000</PingTimeout>
|
||||
<ValidationFrequency>8000</ValidationFrequency>
|
||||
<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
|
||||
<MaximumSetBufferTime>60000</MaximumSetBufferTime>
|
||||
<MaximumStorageDirDepth>25</MaximumStorageDirDepth>
|
||||
-->
|
||||
<Connections>
|
||||
<AutoAccept>true</AutoAccept>
|
||||
<AllowDomains></AllowDomains>
|
||||
</Connections>
|
||||
<!--
|
||||
StorageDir path variables
|
||||
|
||||
${com.wowza.wms.AppHome} - Application home directory
|
||||
${com.wowza.wms.ConfigHome} - Configuration home directory
|
||||
${com.wowza.wms.context.VHost} - Virtual host name
|
||||
${com.wowza.wms.context.VHostConfigHome} - Virtual host home directory
|
||||
${com.wowza.wms.context.Application} - Application name
|
||||
${com.wowza.wms.context.ApplicationInstance} - Application instance name
|
||||
|
||||
-->
|
||||
<Streams>
|
||||
<StreamType>live-record-lowlatency</StreamType>
|
||||
<StorageDir>/opt/wowza/live_fleet</StorageDir>
|
||||
<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
|
||||
<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, mpegdashstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater, mpegdashstreamingrepeater, dvrstreamingpacketizer, dvrstreamingrepeater -->
|
||||
<LiveStreamPacketizers>cupertinostreamingpacketizer</LiveStreamPacketizers>
|
||||
<!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
|
||||
<Properties>
|
||||
<Property>
|
||||
<Name>flushInterval</Name>
|
||||
<Value>25</Value>
|
||||
<Type>Integer</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>onFlushNotifyClients</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Streams>
|
||||
<Transcoder>
|
||||
<!-- To turn on transcoder set to: transcoder -->
|
||||
<LiveStreamTranscoder></LiveStreamTranscoder>
|
||||
<!-- [templatename].xml or ${SourceStreamName}.xml -->
|
||||
<Templates>${SourceStreamName}.xml,transrate.xml</Templates>
|
||||
<ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
|
||||
<TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
|
||||
<Properties>
|
||||
</Properties>
|
||||
</Transcoder>
|
||||
<DVR>
|
||||
<!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above -->
|
||||
<!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above -->
|
||||
<!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below -->
|
||||
<!-- If this is a dvrstreamingrepeater, define Application/Repeater/OriginURL to point back to the origin -->
|
||||
<!-- To turn on DVR recording set Recorders to dvrrecorder. This works with dvrstreamingpacketizer -->
|
||||
<Recorders></Recorders>
|
||||
<!-- As a single server or as an origin, set the Store to dvrfilestorage-->
|
||||
<!-- edges should have this empty -->
|
||||
<Store></Store>
|
||||
<!-- Window Duration is length of live DVR window in seconds. 0 means the window is never trimmed. -->
|
||||
<WindowDuration>0</WindowDuration>
|
||||
<!-- Storage Directory is top level location where dvr is stored. e.g. c:/temp/dvr -->
|
||||
<StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>
|
||||
<!-- valid ArchiveStrategy values are append, version, delete -->
|
||||
<ArchiveStrategy>append</ArchiveStrategy>
|
||||
<!-- Properties for DVR -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</DVR>
|
||||
<TimedText>
|
||||
<!-- VOD caption providers (separate with commas): vodcaptionprovidermp4_3gpp, vodcaptionproviderttml, vodcaptionproviderwebvtt, vodcaptionprovidersrt, vodcaptionproviderscc -->
|
||||
<VODTimedTextProviders></VODTimedTextProviders>
|
||||
<!-- Properties for TimedText -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</TimedText>
|
||||
<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, mpegdashstreaming, dvrchunkstreaming -->
|
||||
<HTTPStreamers>cupertinostreaming</HTTPStreamers>
|
||||
<MediaCache>
|
||||
<MediaCacheSourceList></MediaCacheSourceList>
|
||||
</MediaCache>
|
||||
<SharedObjects>
|
||||
<StorageDir>${com.wowza.wms.context.VHostConfigHome}/applications/${com.wowza.wms.context.Application}/sharedobjects/${com.wowza.wms.context.ApplicationInstance}</StorageDir>
|
||||
</SharedObjects>
|
||||
<Client>
|
||||
<IdleFrequency>-1</IdleFrequency>
|
||||
<Access>
|
||||
<StreamReadAccess>*</StreamReadAccess>
|
||||
<StreamWriteAccess>*</StreamWriteAccess>
|
||||
<StreamAudioSampleAccess></StreamAudioSampleAccess>
|
||||
<StreamVideoSampleAccess></StreamVideoSampleAccess>
|
||||
<SharedObjectReadAccess>*</SharedObjectReadAccess>
|
||||
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
|
||||
</Access>
|
||||
</Client>
|
||||
<RTP>
|
||||
<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
|
||||
<Authentication>
|
||||
<PublishMethod>digest</PublishMethod>
|
||||
<PlayMethod>block</PlayMethod>
|
||||
</Authentication>
|
||||
<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
|
||||
<AVSyncMethod>senderreport</AVSyncMethod>
|
||||
<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
|
||||
<IdleFrequency>75</IdleFrequency>
|
||||
<RTSPSessionTimeout>90000</RTSPSessionTimeout>
|
||||
<RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
|
||||
<RTSPBindIpAddress></RTSPBindIpAddress>
|
||||
<RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
|
||||
<RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
|
||||
<IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
|
||||
<!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</RTP>
|
||||
<WebRTC>
|
||||
<!-- Enable WebRTC publishing to this application -->
|
||||
<EnablePublish>false</EnablePublish>
|
||||
<!-- Enable WebRTC playback from this application -->
|
||||
<EnablePlay>false</EnablePlay>
|
||||
<!-- Enable query of published stream names for this application -->
|
||||
<EnableQuery>false</EnableQuery>
|
||||
<!-- IP address, transport, and port used for WebRTC streaming. -->
|
||||
<!--TCP format: [wowza-streaming-engine-external-ip-address],tcp,[port] -->
|
||||
<!--UDP format: [wowza-streaming-engine-external-ip-address],udp -->
|
||||
<IceCandidateIpAddresses>127.0.0.1,tcp,1935</IceCandidateIpAddresses>
|
||||
<!-- Local IP address of the network card you want to use for WebRTC UDP traffic -->
|
||||
<UDPBindAddress></UDPBindAddress>
|
||||
<!-- Comma-deliniated list of audio codecs, in order of preference, for stream ingestion -->
|
||||
<PreferredCodecsAudio>opus,pcmu,pcma</PreferredCodecsAudio>
|
||||
<!-- Comma-deliniated list of video codecs, in order of preference, for stream ingestion -->
|
||||
<PreferredCodecsVideo>vp8,h264</PreferredCodecsVideo>
|
||||
<!-- Enable WebRTC debug logging -->
|
||||
<DebugLog>false</DebugLog>
|
||||
<!-- Properties for WebRTC -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</WebRTC>
|
||||
<MediaCaster>
|
||||
<RTP>
|
||||
<RTSP>
|
||||
<!-- udp, interleave -->
|
||||
<RTPTransportMode>interleave</RTPTransportMode>
|
||||
</RTSP>
|
||||
</RTP>
|
||||
<StreamValidator>
|
||||
<Enable>true</Enable>
|
||||
<ResetNameGroups>true</ResetNameGroups>
|
||||
<StreamStartTimeout>20000</StreamStartTimeout>
|
||||
<StreamTimeout>12000</StreamTimeout>
|
||||
<VideoStartTimeout>0</VideoStartTimeout>
|
||||
<VideoTimeout>0</VideoTimeout>
|
||||
<AudioStartTimeout>0</AudioStartTimeout>
|
||||
<AudioTimeout>0</AudioTimeout>
|
||||
<VideoTCToleranceEnable>false</VideoTCToleranceEnable>
|
||||
<VideoTCPosTolerance>3000</VideoTCPosTolerance>
|
||||
<VideoTCNegTolerance>-500</VideoTCNegTolerance>
|
||||
<AudioTCToleranceEnable>false</AudioTCToleranceEnable>
|
||||
<AudioTCPosTolerance>3000</AudioTCPosTolerance>
|
||||
<AudioTCNegTolerance>-500</AudioTCNegTolerance>
|
||||
<DataTCToleranceEnable>false</DataTCToleranceEnable>
|
||||
<DataTCPosTolerance>3000</DataTCPosTolerance>
|
||||
<DataTCNegTolerance>-500</DataTCNegTolerance>
|
||||
<AVSyncToleranceEnable>false</AVSyncToleranceEnable>
|
||||
<AVSyncTolerance>1500</AVSyncTolerance>
|
||||
<DebugLog>false</DebugLog>
|
||||
</StreamValidator>
|
||||
<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</MediaCaster>
|
||||
<MediaReader>
|
||||
<!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</MediaReader>
|
||||
<MediaWriter>
|
||||
<!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</MediaWriter>
|
||||
<LiveStreamPacketizer>
|
||||
<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
|
||||
<Properties>
|
||||
<Property>
|
||||
<Name>cupertinoChunkDurationTarget</Name>
|
||||
<Value>5000</Value>
|
||||
<Type>Integer</Type>
|
||||
</Property>
|
||||
</Properties>
|
||||
</LiveStreamPacketizer>
|
||||
<HTTPStreamer>
|
||||
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</HTTPStreamer>
|
||||
<Manager>
|
||||
<!-- Properties defined are used by the Manager -->
|
||||
<Properties>
|
||||
</Properties>
|
||||
</Manager>
|
||||
<Repeater>
|
||||
<OriginURL></OriginURL>
|
||||
<QueryString></QueryString>
|
||||
</Repeater>
|
||||
<StreamRecorder>
|
||||
<Properties>
|
||||
<Property>
|
||||
<Name>streamRecorderDebugEnable</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>streamRecorderFileVersionTemplate</Name>
|
||||
<Value>${SourceStreamName}_${SegmentTime}</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>streamRecorderSegmentationType</Name>
|
||||
<Value>duration</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>streamRecorderSegmentDuration</Name>
|
||||
<Value>900000</Value>
|
||||
<Type>Integer</Type>
|
||||
</Property>
|
||||
</Properties>
|
||||
</StreamRecorder>
|
||||
<Modules>
|
||||
<Module>
|
||||
<Name>base</Name>
|
||||
<Description>Base</Description>
|
||||
<Class>com.wowza.wms.module.ModuleCore</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>logging</Name>
|
||||
<Description>Client Logging</Description>
|
||||
<Class>com.wowza.wms.module.ModuleClientLogging</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>flvplayback</Name>
|
||||
<Description>FLVPlayback</Description>
|
||||
<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>ModuleCoreSecurity</Name>
|
||||
<Description>Core Security Module for Applications</Description>
|
||||
<Class>com.wowza.wms.security.ModuleCoreSecurity</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>ModuleSecureURLParams</Name>
|
||||
<Description>ModuleSecureURLParams</Description>
|
||||
<Class>com.wowza.wms.security.ModuleSecureURLParams</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>Security360Module</Name>
|
||||
<Description>Notify stream status</Description>
|
||||
<Class>com.waylens.wms.Security360Module</Class>
|
||||
</Module>
|
||||
<Module>
|
||||
<Name>s3uploader</Name>
|
||||
<Description>upload to s3</Description>
|
||||
<Class>com.waylens.wms.ModuleS3Upload</Class>
|
||||
</Module>
|
||||
</Modules>
|
||||
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
|
||||
<Properties>
|
||||
<Property>
|
||||
<Name>pushPublishMapPath</Name>
|
||||
<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadAccessKeyID</Name>
|
||||
<Value>AKIAVZFGACWSFXGVXCNA</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadAccessKeySecret</Name>
|
||||
<Value>X53JxRDMnGhB6A6uBmgJQZwj44YjQ4awbalE4bxH</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadBucketName</Name>
|
||||
<Value>wtestfleet</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadRegion</Name>
|
||||
<Value>ap-southeast-1</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadVersionFile</Name>
|
||||
<Value>false</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadDeleteOriginalFiles</Name>
|
||||
<Value>false</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadDebugLog</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadNotifyUrl</Name>
|
||||
<Value>http://172.20.24.171:9000/wowza/notify_upload</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadStreamInfoUrl</Name>
|
||||
<Value>http://172.20.24.171:9000/wowza/streamInfo</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>Security360StreamStatusNotifyUrl</Name>
|
||||
<Value>http://172.20.24.171:9000/wowza/notify_streaming</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securityPublishBlockDuplicateStreamNames</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadFilePrefix</Name>
|
||||
<Value>live_video</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadUseSSE</Name>
|
||||
<Value>false</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>s3UploadRestartFailedUploads</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securityDebugLogRejections</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securityDebugLogDetails</Name>
|
||||
<Value>true</Value>
|
||||
<Type>Boolean</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securityPublishValidEncoders</Name>
|
||||
<Value>Wirecast/|FME/|FMLE/|Wowza GoCoder*|Lavf/|UA Teradek/|KulaByte/|HaivisionKB/|VidBlaster/|XSplit/|PESA|makitoX/|Elemental Live/|WaylensHorn</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securitySecureTokenVersion</Name>
|
||||
<Value>2</Value>
|
||||
<Type>Integer</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securitySecureTokenSharedSecret</Name>
|
||||
<Value>Sh4Tgsl2l43lB</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securitySecureTokenHashAlgorithm</Name>
|
||||
<Value>SHA-256</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>securitySecureTokenQueryParametersPrefix</Name>
|
||||
<Value>fleet</Value>
|
||||
<Type>String</Type>
|
||||
</Property>
|
||||
<Property>
|
||||
<Name>secureurlparams.publish</Name>
|
||||
<Value>E54d22d793.publishfleet</Value>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Application>
|
||||
</Root>
|
243
wtest/wowza/log4j2-config.xml
Normal file
243
wtest/wowza/log4j2-config.xml
Normal file
@ -0,0 +1,243 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="info">
|
||||
<!--
|
||||
|
||||
Available ThreadContext map keys:
|
||||
|
||||
date, time, tz, x-event, x-category, x-severity, x-status, x-ctx, x-ctx-override, x-comment, x-vhost, x-app, x-appinst, x-duration, s-ip,
|
||||
s-port, s-uri, c-ip, c-proto, c-referrer, c-user-agent, c-client-id, cs-bytes, sc-bytes, x-stream-id, x-spos, cs-stream-bytes, sc-stream-bytes,
|
||||
x-sname, x-sname-query, x-file-name, x-file-ext, x-file-size, x-file-length, x-suri, x-suri-stem, x-suri-query, cs-uri-stem, cs-uri-query,
|
||||
x-forwarded-ip, x-class-fqcn, x-class-name, x-class-packagename, x-vhost-context, x-app-context, x-appinst-context
|
||||
|
||||
-->
|
||||
<Appenders>
|
||||
<Console name="stdout" target="SYSTEM_OUT">
|
||||
<PatternLayout>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-} %replace{%X{x-category}}{^$}{-} %replace{%X{x-event}}{^$}{-} %replace{%X{x-ctx}}{^$}{-} %replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
</Console>
|
||||
|
||||
<RollingFile name="serverAccess" fileName="/opt/wowza/logs/wowzastreamingengine_access.log" filePattern="/opt/wowza/logs/wowzastreamingengine_access.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n</Header>
|
||||
<Pattern>%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs" maxDepth="1">
|
||||
<IfLastModified age="14d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="serverError" fileName="/opt/wowza/logs/wowzastreamingengine_error.log" filePattern="/opt/wowza/logs/wowzastreamingengine_error.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n</Header>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="serverStats" fileName="/opt/wowza/logs/wowzastreamingengine_stats.log" filePattern="/opt/wowza/logs/wowzastreamingengine_stats.%d{yyyy-MM-dd}.log">
|
||||
<Filters>
|
||||
<ContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
|
||||
<KeyValuePair key="x-event" value="comment"/>
|
||||
</ContextMapFilter>
|
||||
<ContextMapFilter onMatch="ACCEPT" onMismatch="DENY" operator="or">
|
||||
<KeyValuePair key="x-category" value="session"/>
|
||||
<KeyValuePair key="x-category" value="stream"/>
|
||||
</ContextMapFilter>
|
||||
</Filters>
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n</Header>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
|
||||
<Routing name="vhostAccess" >
|
||||
<Routes pattern="$${ctx:x-vhost-context}">
|
||||
<Route>
|
||||
<RollingFile name="vhostAccess-${ctx:x-vhost-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/wowzastreamingengine_access.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/wowzastreamingengine_access.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n</Header>
|
||||
<Pattern>%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
<Routing name="vhostError" >
|
||||
<Routes pattern="$${ctx:x-vhost-context}">
|
||||
<Route>
|
||||
<RollingFile name="vhostError-${ctx:x-vhost-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/wowzastreamingengine_error.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/wowzastreamingengine_error.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n</Header>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
<Routing name="applicationAccess" >
|
||||
<Routes pattern="$${ctx:x-app-context}">
|
||||
<Route>
|
||||
<RollingFile name="applicationAccess-${ctx:x-app-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/wowzastreamingengine_access.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/wowzastreamingengine_access.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n</Header>
|
||||
<Pattern>%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
<Routing name="applicationError" >
|
||||
<Routes pattern="$${ctx:x-app-context}">
|
||||
<Route>
|
||||
<RollingFile name="applicationError-${ctx:x-app-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/wowzastreamingengine_error.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/wowzastreamingengine_error.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n</Header>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
<Routing name="applicationInstanceAccess" >
|
||||
<Routes pattern="$${ctx:x-appinst-context}">
|
||||
<Route>
|
||||
<RollingFile name="applicationInstanceAccess-${ctx:x-appinst-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}/wowzastreamingengine_access.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}/wowzastreamingengine_access.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n</Header>
|
||||
<Pattern>%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
<Routing name="applicationInstanceError" >
|
||||
<Routes pattern="$${ctx:x-appinst-context}">
|
||||
<Route>
|
||||
<RollingFile name="applicationInstanceError-${ctx:x-appinst-context}" fileName="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}/wowzastreamingengine_error.log" filePattern="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}/wowzastreamingengine_error.%d{yyyy-MM-dd}.log">
|
||||
<PatternLayout>
|
||||
<Header>#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n</Header>
|
||||
<Pattern>%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n</Pattern>
|
||||
<AlwaysWriteExceptions>false</AlwaysWriteExceptions>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy>
|
||||
<Delete basePath="/opt/wowza/logs/${ctx:x-vhost}/${ctx:x-app}/${ctx:x-appinst}" maxDepth="1">
|
||||
<IfLastModified age="5d" />
|
||||
</Delete>
|
||||
</DefaultRolloverStrategy>
|
||||
</RollingFile>
|
||||
</Route>
|
||||
<Route key="">
|
||||
<CountingNoOp name="DEV_NULL" />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Routing>
|
||||
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="info">
|
||||
<AppenderRef ref="stdout" level="info"/>
|
||||
<AppenderRef ref="serverAccess" level="info"/>
|
||||
<AppenderRef ref="serverError" level="warn"/>
|
||||
<!-- <AppenderRef ref="serverStats" level="info"/> -->
|
||||
<!-- <AppenderRef ref="vhostAccess" level="info"/> -->
|
||||
<!-- <AppenderRef ref="vhostError" level="warn"/> -->
|
||||
<!-- <AppenderRef ref="applicationAccess" level="info"/> -->
|
||||
<!-- <AppenderRef ref="applicationError" level="warn"/> -->
|
||||
<!-- <AppenderRef ref="applicationInstanceAccess" level="info"/> -->
|
||||
<!-- <AppenderRef ref="applicationInstanceError" level="warn"/> -->
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
Reference in New Issue
Block a user