Skip to content

Commit

Permalink
First
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Mar 31, 2017
0 parents commit 2d41345
Show file tree
Hide file tree
Showing 15 changed files with 3,048 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.cache*
.settings/*
.project
.settings
.cache
.target
*.class
target
project/target
project/project
log
*log
logs
logs/*
tmp
logFile*
.DS_STORE
.DS_STORE?
error.log
admin.log
bin
.classpath
.settings/org.scala-ide.sdt.core.prefs
.cache-tests
190 changes: 190 additions & 0 deletions conf/application.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@

# images
image.size.min=120
image.size.max=3200
image.quality.max=80

# cassandra


cassandra.keyspace="wurrly"
cassandra.queryLimit=100
cassandra.connections.max=100
cassandra.connections.min=5

#redis

redis.port=6379
redis.password=null
redis.maxTotal=1024
redis.maxIdle=10
redis.minIdle=5

#elasticsearch

es.index.name="wurrly"



#graph

graph.enabled = true

# analytics

events.batch.size=10

# okhttp

okhttp.timeout=10

# azure

azure.accountName="wurrly"
azure.accessKey.primary="lQyT2OeOYeNoYh/NX58LKCMFue6YYp7gjWLvH+2c5oq1s/jE0ur6kkN25oWn5vGDYdQgREmaZZHI6qpjs/FlnA=="
azure.accessKey.secondary="qYB2MkSrgsEAiXfFCVfG0xK7DDkmRCI8Y1KH0iWaQz+k+OdbLyOO8jax+ZqStWg0XIQL1SA099eUEcWGtCjRIA=="

#ebean models

ebean.default=[ "models.MediaContent", "models.VideoOverlay", "models.Mask", "models.ContentResource", "models.Content", "models.Hero", "models.Battle", "models.Tip", "models.PlaylistCategory", "models.Collaboration", "models.Review", "models.Collaborator", "models.CollaboratorComment", "models.MediaPurchase","models.AdminActivity","models.Playlist","models.SongTrack","models.Feature","models.Publisher","models.Label","models.Credentials","models.WurrlyModel","models.ArtistFact","models.ArtistQuestion","models.Property","models.Artist","models.Wurrly","models.Song","models.Report","models.Competition","models.Event","models.Comment", "models.User","models.adapter.UserEntityListener","models.adapter.SongEntityListener","models.adapter.WurrlyEntityListener"]

# akka

subsystem.worker.count=12
subsystem.worker.timeout=60000

# netty

play.http.parser.maxMemoryBuffer=256000K
play.http.parser.maxDiskBuffer=256000K

# location

location.country.db.path="support/geo/Country.mmdb"
location.city.db.path="support/geo/City.mmdb"
location.iso.codes.path="support/geo/territories.json"
location.default.region="GB"

# hashids

hashids.salt="3C0B0AEF-794F-4D89-9EEE-476CE9A89DFB"

# newrelic

newrelic.license.key="a9bfbe086c5964de4617fa0280077dd2273d3a6b"

# users

user.feed.item.limit=1500
user.default.avatarPath="4c/50/b8/36/e7e2bf69ca.png"
user.default.bannerPath="57/60/9b/8f/61341a91f0.png"
user.password.backdoor="happyasaclamindecember"


# google cloud messaging

gcm.senderId=1095155988888
gcm.apiKey="AIzaSyDbHS8u7LEZQcr3_WooM5Ib-DUEU8HTCfU"


# twilio

twilio.number="+16467987759"
twilio.sid="AC8a33a9fc51927ccd980ac919cdadcba5"
twilio.token="de44558f9a980b337512eb60b812f31a"



#api

api.authentication.header="X-Wurrly-Auth"
api.authentication.key="213fe69502445ed67ae8b99d22838802"

# hfa
hfa.royaltyId.length=10

# shopify
shopify.api.key=769375b638f4a6132df62f3c10fdab21
shopify.api.password=7f950bbb21cf43c0afe8c050907993b3
shopify.api.secret=a9c0ebee8d529e05ded128c1738afbcb
shopify.login="[email protected]"
shopify.password="wuRR1y"
shopify.authorization="Basic NzY5Mzc1YjYzOGY0YTYxMzJkZjYyZjNjMTBmZGFiMjE6N2Y5NTBiYmIyMWNmNDNjMGFmZThjMDUwOTA3OTkzYjM="
shopify.shop.url="https://wurrly.myshopify.com/admin"
shopify.expiration.days=6
shopify.product.image.prefix="http://cdn1.wurrly.co/images/w550/"
shopify.domain="wurrly.myshopify.com"
shopify.channel.mobile="23087876"
shopify.product.price="1.99"

#migration
migration.baseUrl="http://imaging.wurrly.co:4444/wurrlies?"

#itms
itms.secret="a1f89c67d6e34599b1056b3f42f1c735"
itms.verification.production.url="https://buy.itunes.apple.com/verifyReceipt"
itms.verification.sandbox.url="https://sandbox.itunes.apple.com/verifyReceipt"

#subscriptions

user.max.wurrlies=20

#notifications

notifications.enabled=1

#collaborations

collaborations.maxUsers=4

#mailchimp


mailchimp.base.url="https://us9.api.mailchimp.com/3.0/"

#password

user.default.password="$2a$10$6T5QVxo16r7qoSdwm9Hx/.rJzWuMQEFoJ6X/VL0DKY0uxaO.XSjBa"

#battles

battle.voting.duration=48

#sift

sift.api.key="GT4cFVEZegH4N5jxq5rj"
sift.api.url="https://wur28vu8.pottymouthfilter.com/v1/"


# The application languages
# ~~~~~


# 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)
# play.http.router = my.application.Routes

# Database configuration
# ~~~~~
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`
#
# db.default.driver=org.h2.Driver
# db.default.url="jdbc:h2:mem:play"
# db.default.username=sa
# db.default.password=""

# Evolutions
# ~~~~~
# You can disable evolutions if needed
# play.evolutions.enabled=false

# You can disable evolutions for a specific datasource if necessary
# play.evolutions.db.default.enabled=false
115 changes: 115 additions & 0 deletions conf/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="15 seconds" debug="false">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">

<withJansi>true</withJansi>

<encoder>
<!-- <pattern>[%d{ISO8601}]-[%thread] %-5level %logger - %msg%n</pattern> -->
<pattern>[%d{ISO8601}]-[%thread] %highlight(%-5level) [%boldCyan(%logger)] - %boldWhite(%message) %n
</pattern>

</encoder>
</appender>


<logger name="org.apache.http" level="ERROR" />


<logger name="javax.mail" level="ERROR" />
<logger name="com.squareup.okhttp" level="WARN" />
<logger name="javax.activation" level="ERROR" />

<logger name="io.netty" level="ERROR" />
<logger name="io.netty.handler" level="ERROR" />


<logger name="com.relayrides" level="ERROR" />
<logger name="org.apache.activemq" level="ERROR" />
<logger name="org.apache.camel" level="ERROR" />
<logger name="org.apache.activemq" level="ERROR" />
<logger name="sun.net" level="ERROR" />
<logger name="org.springsource" level="ERROR" />
<logger name="com.sun.jersey" level="ERROR" />


<logger name="org.xnio.nio" level="ERROR" />
<logger name="io.undertow" level="ERROR" />


<logger name="org.reflections" level="OFF" />
<logger name="org.elasticsearch" level="ERROR" />
<logger name="org.ajave.ebean" level="ERROR" />

<logger name="org.avaje.ebean.SQL" level="ERROR" />
<logger name="org.avaje.ebean.SUM" level="ERROR" />
<logger name="org.avaje.ebean.TXN" level="ERROR" />
<logger name="com.avaje.ebeaninternal" level="ERROR" />
<logger name="org.avaje.ebean.cache.BEAN" level="ERROR" />

<logger name="io.swagger.converter" level="ERROR" />
<logger name="io.swagger.jackson" level="ERROR" />


<logger name="com.avaje.ebean.config.PropertyMapLoader" level="ERROR" />
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="ERROR" />
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="ERROR" />

<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF" />
<logger name="swagger" level="ERROR" />
<logger name="com.zaxxer.hikari" level="ERROR" />
<logger name="com.zaxxer.hikari.pool" level="ERROR" />
<logger name="javax.management" level="ERROR" />
<logger name="javax.management.mbeanserver" level="OFF" />
<logger name="java.jmx" level="ERROR" />

<logger name="net.sf.ehcache" level="ERROR" />

<logger name="org.apache.http" level="ERROR" />
<logger name="com.amazonaws" level="ERROR" />
<logger name="org.apache.http.wire" level="ERROR" />

<logger name="com.wordnik" level="OFF" />

<logger name="javax.mail" level="ERROR" />
<logger name="com.squareup.okhttp" level="WARN" />

<logger name="org.hibernate.validator" level="ERROR" />


<logger name="org.apache.camel" level="ERROR" />
<logger name="org.apache.activemq" level="ERROR" />
<logger name="sun.net" level="ERROR" />
<logger name="org.springsource" level="ERROR" />
<logger name="com.sun.jersey" level="ERROR" />
<logger name="akka.event.EventStream" level="ERROR" />
<logger name="akka.event.slf4j" level="ERROR" />
<logger name="com.googlecode.mp4parser" level="ERROR" />
<logger name="com.googlecode.mp4parser.util" level="ERROR" />

<logger name="org.elasticsearch.plugins" level="ERROR" />

<logger name="org.apache.commons.logging.impl.Jdk14Logger" level="ERROR" />
<logger name="org.zeroturnaround.exec.ProcessExecutor" level="ERROR" />
<logger name="org.zeroturnaround.exec" level="ERROR" />

<!-- <logger name="com.datastax.driver.core.QueryLogger.NORMAL" level="trace" />
-->

<logger name="org.apache.kafka.clients.NetworkClient" level="ERROR" />
<logger name="org.apache.kafka.clients.producer" level="ERROR" />

<logger name="com.wurrly.controllers" level="DEBUG" />
<logger name="com.wurrly.service" level="DEBUG" />
<logger name="com.wurrly.models" level="DEBUG" />
<logger name="com.wurrly.protocol.Serializers" level="ERROR" />

<logger name="java.util.logging.Logger" level="ERROR" />
<logger name="com.google.inject.internal" level="ERROR" />
<logger name="com.google.inject" level="ERROR" />
<logger name="com.datastax" level="ERROR" />

<root level="debug">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Loading

0 comments on commit 2d41345

Please sign in to comment.