aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-07 17:41:17 +0300
committerGravatar Vitaly Takmazov2016-07-07 17:41:17 +0300
commita928be44a5aadf8f55ded02554949c61b995335b (patch)
tree6c9ffdc0742145e897d1628bbeccfa779d256b92 /juick-www/src/main/webapp/WEB-INF
parent92b4d10aff738c18dee7e2d8d4d394904ccd6259 (diff)
fix project structure
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/juick.conf.example5
-rw-r--r--juick-www/src/main/webapp/WEB-INF/logging.properties.example5
-rw-r--r--juick-www/src/main/webapp/WEB-INF/web.xml50
3 files changed, 60 insertions, 0 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/juick.conf.example b/juick-www/src/main/webapp/WEB-INF/juick.conf.example
new file mode 100644
index 00000000..54ac862a
--- /dev/null
+++ b/juick-www/src/main/webapp/WEB-INF/juick.conf.example
@@ -0,0 +1,5 @@
+mysql_username=username
+xmpp_password=secret
+sape_user=usertoken
+wns_application_sip=ms-app://x-1-11-1-1111111111-...
+wns_client_secret=secret \ No newline at end of file
diff --git a/juick-www/src/main/webapp/WEB-INF/logging.properties.example b/juick-www/src/main/webapp/WEB-INF/logging.properties.example
new file mode 100644
index 00000000..7bdaa72e
--- /dev/null
+++ b/juick-www/src/main/webapp/WEB-INF/logging.properties.example
@@ -0,0 +1,5 @@
+handlers = java.util.logging.FileHandler
+java.util.logging.FileHandler.pattern = www.log
+java.util.logging.FileHandler.limit = 1000000
+java.util.logging.FileHandler.count = 5
+java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
diff --git a/juick-www/src/main/webapp/WEB-INF/web.xml b/juick-www/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 00000000..4db19af6
--- /dev/null
+++ b/juick-www/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
+ <servlet>
+ <servlet-name>Main</servlet-name>
+ <servlet-class>com.juick.www.Main</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Main</servlet-name>
+ <url-pattern>/</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>default</servlet-name>
+ <url-pattern>/scripts.js</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>default</servlet-name>
+ <url-pattern>/style.css</url-pattern>
+ </servlet-mapping>
+ <mime-mapping>
+ <extension>js</extension>
+ <mime-type>application/javascript;charset=UTF-8</mime-type>
+ </mime-mapping>
+ <mime-mapping>
+ <extension>css</extension>
+ <mime-type>text/css;charset=UTF-8</mime-type>
+ </mime-mapping>
+ <session-config>
+ <session-timeout>
+ 30
+ </session-timeout>
+ </session-config>
+ <listener>
+ <description>APNS/GCM/MPNS module</description>
+ <display-name>PushComponent</display-name>
+ <listener-class>com.juick.www.PushComponent</listener-class>
+ </listener>
+ <listener>
+ <description>Crossposting module</description>
+ <display-name>CrosspostComponent</display-name>
+ <listener-class>com.juick.www.CrosspostComponent</listener-class>
+ </listener>
+ <listener>
+ <description>XMPP module</description>
+ <display-name>XMPPComponent</display-name>
+ <listener-class>com.juick.xmpp.s2s.XMPPComponent</listener-class>
+ </listener>
+</web-app>