Revision: 8396
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8396&view=rev
Author:   dnaber
Date:     2012-11-13 22:24:27 +0000 (Tue, 13 Nov 2012)
Log Message:
-----------
https server: update doc as the usage has changed

Modified Paths:
--------------
    trunk/website/www/http-api/index.php

Modified: trunk/website/www/http-api/index.php
===================================================================
--- trunk/website/www/http-api/index.php        2012-11-13 22:13:04 UTC (rev 
8395)
+++ trunk/website/www/http-api/index.php        2012-11-13 22:24:27 UTC (rev 
8396)
@@ -3,7 +3,7 @@
 $sub_page = "http-api";
 $title = "LanguageTool";
 $title2 = "HTTP API";
-$lastmod = "2012-11-11 19:20:00 CET";
+$lastmod = "2012-11-13 19:20:00 CET";
 include("../../include/header.php");
 include('../../include/geshi/geshi.php');
 ?>
@@ -87,8 +87,19 @@
 <p>Starting with version 2.0, LanguageTool offers an embedded HTTPS server. It 
works just like the HTTP server
 described above, but it only supports <tt>https</tt>. It can be started like 
this:</p>
 
-<tt>java -cp LanguageTool.jar org.languagetool.server.HTTPSServer --keystore 
keystore.kjs --password mypassword</tt>
+<tt>java -cp LanguageTool.jar org.languagetool.server.HTTPSServer --config 
server.properties</tt>
 
+<p><tt>server.properties</tt> is a Java properties file like this:</p>
+
+<pre class="command">
+# Path to Java key store:
+keystore = keystore.jks
+# Password for the Java key store:
+password = my-password
+# Maximum text length. Optional - longer texts will not be checked:
+maxTextLength = 50000
+</pre>
+
 <p>To run the server you need your own SSL certificate, just like when you 
protect your
 webserver using SSL. Assuming you have the required files in PEM format, which 
looks like this:</p>
 
@@ -104,7 +115,7 @@
 <pre class="command">
 cat key crt ca.crt >server.pem
 openssl pkcs12 -export -out server.p12 -in server.pem
-keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 
-destkeystore keystore.kjs -deststoretype jks
+keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 
-destkeystore keystore.jks -deststoretype jks
 </pre>
 
 <?php

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Languagetool-commits mailing list
Languagetool-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to