Commit 7e1618959316a568d0e002dae82370b708d8ff50
1 parent
789870c0
Configurato script per rilascio in produzione
git-svn-id: http://svn.softecspa.it/desktopmate/DesktopMate%202.0/FileProxyServer/trunk@13363 edf0334f-4afc-450a-8f92-fe1409970e7d
Showing
8 changed files
with
376 additions
and
10 deletions
Show diff stats
| 1 | +<?xml version='1.0' encoding='utf-8'?> | |
| 2 | +<Context antiJARLocking="true" | |
| 3 | + antiResourceLocking="false" | |
| 4 | + distributable="true" | |
| 5 | + reloadable="false" crossContext="false"> | |
| 6 | + | |
| 7 | + <!-- Default set of monitored resources --> | |
| 8 | + <WatchedResource>WEB-INF/web.xml</WatchedResource> | |
| 9 | + | |
| 10 | + <!-- Uncomment this to disable session persistence across Tomcat restarts --> | |
| 11 | + <Manager pathname="" /> | |
| 12 | + | |
| 13 | + <Resource name="jdbc/mwm_app" | |
| 14 | + auth="Container" | |
| 15 | + description="DB Connection" | |
| 16 | + driverClass="com.mysql.jdbc.Driver" | |
| 17 | + | |
| 18 | + initialPoolSize="2" | |
| 19 | + minPoolSize="2" | |
| 20 | + maxPoolSize="10" | |
| 21 | + acquireIncrement="2" | |
| 22 | + | |
| 23 | + checkoutTimeout="3600" | |
| 24 | + breakAfterAcquireFailure="false" | |
| 25 | + maxIdleTimeExcessConnections = "30" | |
| 26 | + maxIdleTime = "1800" | |
| 27 | + maxConnectionAge="3600" | |
| 28 | + idleConnectionTestPeriod="200" | |
| 29 | + | |
| 30 | + user="web77u12" | |
| 31 | + password="Ghec56hj" | |
| 32 | + factory="org.apache.naming.factory.BeanFactory" | |
| 33 | + type="com.mchange.v2.c3p0.ComboPooledDataSource" | |
| 34 | + jdbcUrl="jdbc:mysql://mysql-jcluster.backplane:3306/web77db12?autoReconnect=true&characterEncoding=UTF-8" /> | |
| 35 | +</Context> | ... | ... |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
| 3 | + <display-name>FileProxy 1.0.2 (17) - ADT/production [15/07/2014 14:39]</display-name> | |
| 4 | + <!-- Ultime modifiche del 23/06/2014 --> | |
| 5 | + | |
| 6 | + <!-- Configurazione per New Relic --> | |
| 7 | + <context-param> | |
| 8 | + <param-name>com.newrelic.agent.APPLICATION_NAME</param-name> | |
| 9 | + <param-value>FileProxyServer ADT (production)</param-value> | |
| 10 | + </context-param> | |
| 11 | + | |
| 12 | + <!-- ADT/production - 15/07/2014 14:39 --> | |
| 13 | + <!-- Configurazioni obbligatorie --> | |
| 14 | + <context-param> | |
| 15 | + <param-name>ErrorPage</param-name> | |
| 16 | + <param-value>/error.jsp</param-value> | |
| 17 | + </context-param> | |
| 18 | + <context-param> | |
| 19 | + <param-name>constantsFile</param-name> | |
| 20 | + <param-value>portal_settings.xml</param-value> | |
| 21 | + </context-param> | |
| 22 | + <context-param> | |
| 23 | + <param-name>logPropertyFile</param-name> | |
| 24 | + <param-value>log4j.xml</param-value> | |
| 25 | + </context-param> | |
| 26 | + | |
| 27 | + <context-param> | |
| 28 | + <param-name>defaultLanguage</param-name> | |
| 29 | + <param-value>it</param-value> | |
| 30 | + </context-param> | |
| 31 | + | |
| 32 | + <!-- Utilizzata per la gestione della sessione - solo per funzioni di monitoraggio --> | |
| 33 | + <context-param> | |
| 34 | + <param-name>SessionFactory</param-name> | |
| 35 | + <param-value>it.softecspa.jwebber.frameworkImpl.session.CMSImplSessionFactory</param-value> | |
| 36 | + </context-param> | |
| 37 | + | |
| 38 | + <!-- Utilizzata per la gestione della sicurezza - solo per funzioni di monitoraggio --> | |
| 39 | + <context-param> | |
| 40 | + <param-name>SecurityManager</param-name> | |
| 41 | + <param-value>it.softecspa.jwebber.frameworkImpl.security.CMSImplSecurityManager</param-value> | |
| 42 | + </context-param> | |
| 43 | + | |
| 44 | + <!-- @deprecated - Contiene l'elenco delle funzioni di cui deve essere fatto il log degli accessi --> | |
| 45 | + <context-param> | |
| 46 | + <param-name>accessLogWhat</param-name> | |
| 47 | + <param-value>,*,</param-value> | |
| 48 | + </context-param> | |
| 49 | + | |
| 50 | + <!-- @deprecated - Configurazioni opzionali --> | |
| 51 | + <context-param> | |
| 52 | + <param-name>mailServer</param-name> | |
| 53 | + <param-value>localhost</param-value> | |
| 54 | + </context-param> | |
| 55 | + | |
| 56 | + <!-- Da valorizzare se si vuole la autenticazione JWebber --> | |
| 57 | + <context-param> | |
| 58 | + <param-name>keyStore</param-name> | |
| 59 | + <param-value>it.softecspa.portal.security.KeyStoreImpl</param-value> | |
| 60 | + </context-param> | |
| 61 | + | |
| 62 | + <!-- Servlet --> | |
| 63 | + | |
| 64 | + <!-- Startup --> | |
| 65 | + <servlet> | |
| 66 | + <servlet-name>WebApp</servlet-name> | |
| 67 | + <servlet-class>it.softecspa.portal.InitWebApp</servlet-class> | |
| 68 | + <load-on-startup>1</load-on-startup> | |
| 69 | + </servlet> | |
| 70 | + <servlet-mapping> | |
| 71 | + <servlet-name>WebApp</servlet-name> | |
| 72 | + <url-pattern>/WebApp</url-pattern> | |
| 73 | + </servlet-mapping> | |
| 74 | + | |
| 75 | + | |
| 76 | + <!-- POST-SERVICE - servlet --> | |
| 77 | + <servlet> | |
| 78 | + <description>Servlet http file proxy</description> | |
| 79 | + <display-name>httpFileProxy-Statement Servlet</display-name> | |
| 80 | + <servlet-name>httpFileProxyServlet</servlet-name> | |
| 81 | + <servlet-class>it.softecspa.fileproxy.proxyservices.HttpFileProxyService</servlet-class> | |
| 82 | + </servlet> | |
| 83 | + <servlet-mapping> | |
| 84 | + <servlet-name>httpFileProxyServlet</servlet-name> | |
| 85 | + <url-pattern>/proxy-services/statement</url-pattern> | |
| 86 | + </servlet-mapping> | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + <!-- MONITOR - servlet --> | |
| 91 | + <servlet> | |
| 92 | + <description>Servlet di monitoraggio standard</description> | |
| 93 | + <display-name>Monitor Servlet</display-name> | |
| 94 | + <servlet-name>Monitor</servlet-name> | |
| 95 | + <servlet-class>it.softecspa.portal.Monitor</servlet-class> | |
| 96 | + </servlet> | |
| 97 | + <servlet-mapping> | |
| 98 | + <servlet-name>Monitor</servlet-name> | |
| 99 | + <url-pattern>/monitor</url-pattern> | |
| 100 | + </servlet-mapping> | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + <session-config> | |
| 105 | + <!-- Sono Minuti --> | |
| 106 | + <session-timeout>15</session-timeout> | |
| 107 | + </session-config> | |
| 108 | + | |
| 109 | + <mime-mapping> | |
| 110 | + <extension>html</extension> | |
| 111 | + <mime-type>text/html</mime-type> | |
| 112 | + </mime-mapping> | |
| 113 | + | |
| 114 | + <mime-mapping> | |
| 115 | + <extension>dtd</extension> | |
| 116 | + <mime-type>text/plain</mime-type> | |
| 117 | + </mime-mapping> | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + <welcome-file-list> | |
| 126 | + <welcome-file>index.html</welcome-file> | |
| 127 | + <welcome-file>index.htm</welcome-file> | |
| 128 | + <welcome-file>index.jsp</welcome-file> | |
| 129 | + <welcome-file>default.html</welcome-file> | |
| 130 | + <welcome-file>default.htm</welcome-file> | |
| 131 | + <welcome-file>default.jsp</welcome-file> | |
| 132 | + </welcome-file-list> | |
| 133 | +</web-app> | ... | ... |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
| 3 | +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
| 4 | + | |
| 5 | + | |
| 6 | + <!-- APPLICATION LOG --> | |
| 7 | + <appender name="rootFile" class="it.softecspa.kahuna.log.DatedFileAppender"> | |
| 8 | + <param name="Directory" value="/var/www/web150/log/fileproxy" /> | |
| 9 | + <param name="Prefix" value="${hostname}_service." /> | |
| 10 | + <param name="Suffix" value=".log" /> | |
| 11 | + <param name="Autoflush" value="15" /> | |
| 12 | + <layout class="org.apache.log4j.PatternLayout"> | |
| 13 | + <!-- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] [%C.%M():%L] - %m%n" /> --> | |
| 14 | + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] %m%n" /> | |
| 15 | + </layout> | |
| 16 | + </appender> | |
| 17 | + | |
| 18 | + | |
| 19 | + <!-- STATEMENTS STATISTICS LOG --> | |
| 20 | + <appender name="statementFile" class="it.softecspa.kahuna.log.DatedFileAppender"> | |
| 21 | + <param name="Directory" value="/var/www/web150/log/fileproxy/statement" /> | |
| 22 | + <param name="Prefix" value="${hostname}_statement." /> | |
| 23 | + <param name="Suffix" value=".log" /> | |
| 24 | + <param name="Autoflush" value="15" /> | |
| 25 | + <layout class="org.apache.log4j.PatternLayout"> | |
| 26 | + <param name="ConversionPattern" value="%m%n" /> | |
| 27 | + </layout> | |
| 28 | + </appender> | |
| 29 | + | |
| 30 | + <!-- LOGGER SPECIFICI | |
| 31 | + <category name="access" additivity="false"> | |
| 32 | + <priority value="INFO" /> | |
| 33 | + <appender-ref ref="accessFile" /> | |
| 34 | + </category> --> | |
| 35 | + | |
| 36 | + <category name="application" additivity="false"> | |
| 37 | + <priority value="INFO" /> | |
| 38 | + <appender-ref ref="rootFile" /> | |
| 39 | + </category> | |
| 40 | + | |
| 41 | + <category name="it.softecspa" additivity="false"> | |
| 42 | + <priority value="INFO" /> | |
| 43 | + <appender-ref ref="rootFile" /> | |
| 44 | + </category> | |
| 45 | + | |
| 46 | + <!-- Log di gestione della librera dbConnect --> | |
| 47 | + <category name="it.softecspa.database.dbconnect" additivity="false"> | |
| 48 | + <priority value="ERROR" /> | |
| 49 | + <appender-ref ref="rootFile" /> | |
| 50 | + </category> | |
| 51 | + | |
| 52 | + | |
| 53 | + <!-- Logger utilizzato per il monitoraggio delle query SQL | |
| 54 | + Impostare a TRACE per visualizzare le query --> | |
| 55 | + <category name="it.softecspa.database.dbconnect.SQL" additivity="false"> | |
| 56 | + <priority value="OFF" /> | |
| 57 | + <appender-ref ref="rootFile" /> | |
| 58 | + </category> | |
| 59 | + | |
| 60 | + | |
| 61 | + <!-- Logger utilizzato per il monitoraggio statistico delle connessioni verso il datasource | |
| 62 | + Impostare a INFO per tracciare le statistiche --> | |
| 63 | + <category name="it.softecspa.database.c3p0.stats" additivity="false"> | |
| 64 | + <priority value="OFF" /> | |
| 65 | + <appender-ref ref="c3p0StatsFile" /> | |
| 66 | + </category> | |
| 67 | + | |
| 68 | + <!-- Logger utilizzato per il monitoraggio delle chiamate | |
| 69 | + Impostare a INFO per tracciare le chiamate --> | |
| 70 | + <category name="it.softecspa.desktopmate.STATEMENT" additivity="false"> | |
| 71 | + <priority value="INFO" /> | |
| 72 | + <appender-ref ref="statementFile" /> | |
| 73 | + </category> | |
| 74 | + | |
| 75 | + <!-- Log da utilizzare nelle JSP --> | |
| 76 | + <category name="it.softecspa.JSP" additivity="false"> | |
| 77 | + <priority value="INFO" /> | |
| 78 | + <appender-ref ref="rootFile" /> | |
| 79 | + </category> | |
| 80 | + | |
| 81 | + <!-- Log per il servizio di posta | |
| 82 | + <category name="kahuna.mail" additivity="false"> | |
| 83 | + <priority value="DEBUG" /> | |
| 84 | + <appender-ref ref="rootFile" /> | |
| 85 | + </category> --> | |
| 86 | + | |
| 87 | + <!-- Log specifico del componente c3p0 per la gestione del connection pool --> | |
| 88 | + <category name="com.mchange" additivity="false"> | |
| 89 | + <priority value="INFO" /> | |
| 90 | + <appender-ref ref="rootFile" /> | |
| 91 | + </category> | |
| 92 | + | |
| 93 | + <!-- Monitoraggio del reload del contesto. | |
| 94 | + Utilizzato principalmente per monitore i riavvii dei nodi --> | |
| 95 | + <category name="reload" additivity="false"> | |
| 96 | + <priority value="ERROR" /> | |
| 97 | + <appender-ref ref="reloadFile" /> | |
| 98 | + </category> | |
| 99 | + | |
| 100 | + <!-- ROOT --> | |
| 101 | + <root> | |
| 102 | + <priority value="ERROR"/> | |
| 103 | + <appender-ref ref="rootFile"/> | |
| 104 | + </root> | |
| 105 | +</log4j:configuration> | ... | ... |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | |
| 3 | +<properties> | |
| 4 | + <comment>Applicazione Http File Proxy 1.0 - sviluppo</comment> | |
| 5 | + | |
| 6 | + <!-- Mappatura DataSource, JWebber --> | |
| 7 | + <entry key="datasource.cms">jdbc/mwm_app#MYSQL</entry> | |
| 8 | + <!-- <entry key="datasource.cms.readonly">jdbc/dm-master_readonly#MYSQL</entry> --> | |
| 9 | + | |
| 10 | + <!-- Mappatura DataSource, applicazione | |
| 11 | + in caso di più datasource separare la lista con la "virgola" --> | |
| 12 | + <entry key="datasource.application">jdbc/mwm_app#MYSQL</entry> | |
| 13 | + <!-- <entry key="datasource.application.readonly">jdbc/dm-master_readonly#MYSQL,jdbc/dm-stage_readonly#MYSQL</entry> --> | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + <!-- Maschera di definizione del vero nome del cluster legato al virtual host Tomcat | |
| 18 | + Utilizzare la variabile ${hostname} --> | |
| 19 | + <entry key="cluster.mask">web150.${hostname(0,3)}.jcluster.softecspa.it:8180</entry> | |
| 20 | + <!-- <entry key="cluster.backplane.mask">web144.${hostname}.cluster-liliana.aws.backplane.softecspa.it:8180</entry> --> | |
| 21 | + | |
| 22 | + <entry key="application.domain">adt.ctsapplications.it/fileproxy</entry> | |
| 23 | + <!-- Application context name, leave it blank if there isn't a context --> | |
| 24 | + <entry key="application.context.name">fileproxy</entry> | |
| 25 | + | |
| 26 | + <entry key="application.http.port"></entry> <!-- leave it blank for default port 80 --> | |
| 27 | + <entry key="application.https.port"></entry> <!-- leave it blank for default port 443 --> | |
| 28 | + | |
| 29 | + <entry key="application.title">Http file proxy (ADT)</entry> | |
| 30 | + | |
| 31 | + <!-- NOTA: prefisso file di configurazione lingua e path immagini --> | |
| 32 | + <entry key="application.name">httpfileproxy</entry> | |
| 33 | + <entry key="application.environment">produzione</entry> | |
| 34 | + | |
| 35 | + <entry key="language.default">en</entry> | |
| 36 | + <entry key="base.url">http://adt.ctsapplications.it/fileproxy</entry> | |
| 37 | + | |
| 38 | + <!-- Abilitazione del task, default true --> | |
| 39 | + <entry key="timertask.enable">false</entry> | |
| 40 | + | |
| 41 | + <!-- Server di posta e webmaster --> | |
| 42 | + <entry key="mail.enable">true</entry> | |
| 43 | + | |
| 44 | + <entry key="mail.smtp.host">localhost</entry> | |
| 45 | + <entry key="mail.smtp.localhost"></entry> | |
| 46 | + <entry key="mail.smtp.user"></entry> | |
| 47 | + <entry key="mail.smtp.password"></entry> | |
| 48 | + | |
| 49 | + <entry key="mail.from">noreply@desktopmate.net</entry> | |
| 50 | + <entry key="mail.to">dm-admins@softecspa.it</entry> | |
| 51 | + <entry key="mail.cc"></entry> | |
| 52 | + <entry key="mail.bcc"></entry> | |
| 53 | + <entry key="mail.subject">File Proxy - ADT - jcluster -</entry> | |
| 54 | + | |
| 55 | + <!-- Se 'true' invia una mail al riavvio del sistema | |
| 56 | + Se 'false' (default) la mail è inviata soltanto in caso di cambio di versione --> | |
| 57 | + <entry key="mail.start.enable">false</entry> | |
| 58 | + | |
| 59 | + <!-- Invia una mail al verificarsi di un errore non gestito, default 'false' --> | |
| 60 | + <entry key="mail.error.enable">true</entry> | |
| 61 | + | |
| 62 | + <!-- Invia una mail al verificarsi di un errore SQL, default 'false' --> | |
| 63 | + <entry key="mail.sqlerror.enable">true</entry> | |
| 64 | + | |
| 65 | + | |
| 66 | + <!-- Valori che servono per criptare la password | |
| 67 | + Questo modulo è legato al databse della workflow --> | |
| 68 | + <entry key="chiaveCifraturaSimmetrica"><![CDATA[|||||||||||RIDEFINIRE||||||||||||]]></entry> | |
| 69 | + <entry key="chiaveCifraturaPassword"><![CDATA[|||||||||||RIDEFINIRE||||||||||||]]></entry> | |
| 70 | + <entry key="salt">&s@(dfghdgféè*a+$2lnd</entry> | |
| 71 | + <entry key="Base64">true</entry> | |
| 72 | + <entry key="DoubleMd5"></entry> | |
| 73 | + | |
| 74 | + | |
| 75 | + <entry key="POL_SA">SA</entry> | |
| 76 | + <entry key="POL_ADMIN">ADMIN</entry> | |
| 77 | + <entry key="POL_UP_DOWN">UP_DOWN</entry> | |
| 78 | + | |
| 79 | +</properties> | |
| 0 | 80 | \ No newline at end of file | ... | ... |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | |
| 3 | +<properties> | |
| 4 | + <comment>Version information</comment> | |
| 5 | + | |
| 6 | + <entry key="version.number">1.0.2</entry> | |
| 7 | + <entry key="version.release"></entry> | |
| 8 | + <entry key="build.number">17</entry> | |
| 9 | + <entry key="build.date">15/07/2014 14:39</entry> | |
| 10 | + <entry key="build.installation">ADT/production</entry> | |
| 11 | + | |
| 12 | +</properties> | ... | ... |
conf/version.properties
database/change_in_progress/20140623 http file proxy.sql
| ... | ... | @@ -46,5 +46,7 @@ CREATE TABLE `t005_cluster_info` ( |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | |
| 49 | -INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('haertbeat.delay', '0', 'Heartbeat verso server master'): | |
| 50 | -INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('resource.root', '/var/www/web77/user/web77_adt', 'Root dei file') | |
| 51 | 49 | \ No newline at end of file |
| 50 | +INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('haertbeat.delay', '0', 'Heartbeat verso server master'); | |
| 51 | +INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('resource.root', '/var/www/web77/DATA/adt/101/ftp', 'Root dei file'); | |
| 52 | + | |
| 53 | + | ... | ... |
packaging.xml
| ... | ... | @@ -55,16 +55,16 @@ |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | |
| 58 | - <target name="dist - PRODUCTION (desktopmate.net) (jcluster/web??)" description="Costruzione del pacchetto per l'ambiente di produzione (decktopmate.it)" depends="sub-include-AntContrib"> | |
| 58 | + <target name="dist - adt.ctsapplications.it - /fileproxy - jcluster (web150+web77db12)" description="Costruzione del pacchetto per l'ambiente di produzione (ADT)" depends="sub-include-AntContrib"> | |
| 59 | 59 | |
| 60 | 60 | <antcallback antfile="${basedir}/mycredential.xml" target="credential.jcluster" return="var.cert,var.usr,var.pwd,var.tomcat.usr,var.tomcat.pwd" /> |
| 61 | - <property name="var.web" value="web??" /> | |
| 62 | - <property name="var.ctx" value="ROOT" /> | |
| 61 | + <property name="var.web" value="web150" /> | |
| 62 | + <property name="var.ctx" value="fileproxy" /> | |
| 63 | 63 | |
| 64 | 64 | <antcallback antfile="${basedir}/builder.xml" target="dist" return="project.dist,warfile.name"> |
| 65 | 65 | <!-- <param name="config.cliente" value=""/> --> |
| 66 | - <param name="config.prefix" value="product_root_"/> | |
| 67 | - <param name="config.dir" value="desktopmate.net/ROOT"/> | |
| 66 | + <param name="config.prefix" value="adt_jcluster_"/> | |
| 67 | + <param name="config.dir" value="ADT/production"/> | |
| 68 | 68 | <param name="new.relic" value="FileProxyServer ADT (production)"/> |
| 69 | 69 | </antcallback> |
| 70 | 70 | ... | ... |