Advertisement
Guest User

Untitled

a guest
Sep 29th, 2018
201
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.55 KB | None
  1. <config>
  2.  
  3.     <!-- Note: 'default' attributes are used to document a setting's default value as well as to use as fallback. -->
  4.     <!-- Note: When adding a new entry, a default must be set in WSD in case the entry is missing upon deployment. -->
  5.  
  6.     <allowed_languages desc="List of supported languages on this instance."/ default="en_US">en_US</allowed_languages>
  7.  
  8.     <tile_cache_path desc="Path to a directory where to keep the tile cache." type="path" relative="false" default="/var/cache/loolwsd"></tile_cache_path>
  9.     <sys_template_path desc="Path to a template tree with shared libraries etc to be used as source for chroot jails for child processes." type="path" relative="true" default="systemplate"></sys_template_path>
  10.     <lo_template_path desc="Path to a LibreOffice installation tree to be copied (linked) into the jails for child processes. Should be on the same file system as systemplate." type="path" relative="false" default="/opt/collaboraoffice5.3"></lo_template_path>
  11.     <child_root_path desc="Path to the directory under which the chroot jails for the child processes will be created. Should be on the same file system as systemplate and lotemplate. Must be an empty directory." type="path" relative="true" default="jails"></child_root_path>
  12.  
  13.     <server_name desc="Hostname:port of the server running loolwsd. If empty, it's derived from the request." type="string" default="">office.mydomain.com:443</server_name>
  14.     <file_server_root_path desc="Path to the directory that should be considered root for the file server. This should be the directory containing loleaflet." type="path" relative="true" default="loleaflet/../">loleaflet/../</file_server_root_path>
  15.  
  16.     <memproportion desc="The maximum percentage of system memory consumed by all of the LibreOffice Online, after which we start cleaning up idle documents" type="double" default="80.0"></memproportion>
  17.     <num_prespawn_children desc="Number of child processes to keep started in advance and waiting for new clients." type="uint" default="1">1</num_prespawn_children>
  18.     <per_document desc="Document-specific settings, including LO Core settings.">
  19.         <max_concurrency desc="The maximum number of threads to use while processing a document." type="uint" default="4">4</max_concurrency>
  20.         <idle_timeout_secs desc="The maximum number of seconds before unloading an idle document. Defaults to 1 hour." type="uint" default="3600">3600</idle_timeout_secs>
  21.         <!-- Idle save and auto save are checked every 30 seconds -->
  22.         <idlesave_duration_secs desc="The number of idle seconds after which document, if modified, should be saved. Defaults to 30 seconds." type="uint" default="30">30</idlesave_duration_secs>
  23.         <autosave_duration_secs desc="The number of seconds after which document, if modified, should be saved. Defaults to 5 minutes." type="uint" default="300">300</autosave_duration_secs>
  24.         <limit_virt_mem_kb desc="The maximum virtual memory allowed to each document process. 0 for unlimited, 1700 min." type="uint">0</limit_virt_mem_kb>
  25.         <limit_data_mem_kb desc="The maximum memory data segment allowed to each document process. 0 for unlimited." type="uint">0</limit_data_mem_kb>
  26.         <limit_stack_mem_kb desc="The maximum stack size allowed to each document process. 0 for unlimited." type="uint">8000</limit_stack_mem_kb>
  27.         <limit_file_size_mb desc="The maximum file size allowed to each document process to write. 0 for unlimited." type="uint">0</limit_file_size_mb>
  28.         <limit_num_open_files desc="The maximum number of files allowed to each document process to open. 0 for unlimited." type="uint">0</limit_num_open_files>
  29.     </per_document>
  30.  
  31.     <per_view desc="View-specific settings.">
  32.         <out_of_focus_timeout_secs desc="The maximum number of seconds before dimming and stopping updates when the browser tab is no longer in focus. Defaults to 60 seconds." type="uint" default="60">60</out_of_focus_timeout_secs>
  33.         <idle_timeout_secs desc="The maximum number of seconds before dimming and stopping updates when the user is no longer active (even if the browser is in focus). Defaults to 15 minutes." type="uint" default="900">900</idle_timeout_secs>
  34.     </per_view>
  35.  
  36.     <loleaflet_html desc="Allows UI customization by replacing the single endpoint of loleaflet.html" type="string" default="loleaflet.html">loleaflet.html</loleaflet_html>
  37.  
  38.     <logging>
  39.         <color type="bool">true</color>
  40.         <level type="string" desc="Can be 0-8, or none (turns off logging), fatal, critical, error, warning, notice, information, debug, trace" default="warning">debug</level>
  41.         <file enable="false">
  42.         <property name="path" desc="Log file path.">/var/log/lool/loolwsd.log</property>
  43.             <property name="rotation" desc="Log file rotation strategy. See Poco FileChannel.">never</property>
  44.             <property name="archive" desc="Append either timestamp or number to the archived log filename.">timestamp</property>
  45.             <property name="compress" desc="Enable/disable log file compression.">true</property>
  46.             <property name="purgeAge" desc="The maximum age of log files to preserve. See Poco FileChannel.">10 days</property>
  47.             <property name="purgeCount" desc="The maximum number of log archives to preserve. Use 'none' to disable purging. See Poco FileChannel.">10</property>
  48.             <property name="rotateOnOpen" desc="Enable/disable log file rotation on opening.">true</property>
  49.             <property name="flush" desc="Enable/disable flushing after logging each line. May harm performance. Note that without flushing after each line, the log lines from the different processes will not appear in chronological order.">false</property>
  50.         </file>
  51.     </logging>
  52.  
  53.     <loleaflet_logging desc="Logging in the browser console" default="false">false</loleaflet_logging>
  54.  
  55.     <trace desc="Dump commands and notifications for replay. When 'snapshot' is true, the source file is copied to the path first." enable="false">
  56.         <path desc="Output path to hold trace file and docs. Use '%' for timestamp to avoid overwriting. For example: /some/path/to/looltrace-%.gz" compress="true" snapshot="false"></path>
  57.         <filter>
  58.             <message desc="Regex pattern of messages to exclude"></message>
  59.         </filter>
  60.         <outgoing>
  61.             <record desc="Whether or not to record outgoing messages" default="false">false</record>
  62.         </outgoing>
  63.     </trace>
  64.  
  65.     <net desc="Network settings">
  66.       <proto type="string" default="all" desc="Protocol to use IPv4, IPv6 or all for both">all</proto>
  67.     </net>
  68.  
  69.     <ssl desc="SSL settings">
  70.         <enable type="bool" default="false">false</enable>
  71.         <termination desc="Connection via proxy where loolwsd acts as working via https, but actually uses http." type="bool" default="true">true</termination>
  72.     <cert_file_path desc="Path to the cert file" relative="false">/etc/letsencrypt/live/mydomain.com/fullchaim.pem</cert_file_path>
  73.     <key_file_path desc="Path to the key file" relative="false">/etc/letsencrypt/live/mydomain.com/privkey.pem</key_file_path>
  74.     <ca_file_path desc="Path to the ca file" relative="false">/etc/letsencrypt/live/mydomain.com/chain.pem</ca_file_path>
  75.         <cipher_list desc="List of OpenSSL ciphers to accept" default="ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"></cipher_list>
  76.         <hpkp desc="Enable HTTP Public key pinning" enable="false" report_only="false">
  77.             <max_age desc="HPKP's max-age directive - time in seconds browser should remember the pins" enable="true">1000</max_age>
  78.             <report_uri desc="HPKP's report-uri directive - pin validation failure are reported at this URL" enable="false"></report_uri>
  79.             <pins desc="Base64 encoded SPKI fingerprints of keys to be pinned">
  80.             <pin></pin>
  81.             </pins>
  82.         </hpkp>
  83.     </ssl>
  84.  
  85.     <security desc="Altering these defaults potentially opens you to significant risk">
  86.       <seccomp desc="Should we use the seccomp system call filtering." type="bool" default="true">true</seccomp>
  87.       <capabilities desc="Should we require capabilities to isolate processes into chroot jails" type="bool" default="true">true</capabilities>
  88.     </security>
  89.  
  90.     <storage desc="Backend storage">
  91.         <filesystem allow="false" />
  92.         <wopi desc="Allow/deny wopi storage. Mutually exclusive with webdav." allow="true">
  93.         <host desc="Regex pattern of hostname to allow or deny." allow="true">localhost</host>
  94.     <host allow="true">127\.0\.0\.1</host>
  95.             <host desc="Regex pattern of hostname to allow or deny." allow="true">mydomain\.com</host>
  96.             <host desc="Regex pattern of hostname to allow or deny." allow="true">office\.mydomain\.com</host>
  97.             <host desc="Regex pattern of hostname to allow or deny." allow="true">nextcloud\.mydomain\.com</host>
  98.             <host desc="Regex pattern of hostname to allow or deny." allow="true">i\.mydomain\.com</host>
  99.         <host desc="Regex pattern of hostname to allow or deny." allow="true">office.mydomain.com</host>
  100.  
  101.         <host desc="Regex pattern of hostname to allow or deny." allow="true">nextcloud\\.mydomain\\.com</host>
  102.         <host desc="Regex pattern of hostname to allow or deny." allow="true">office\\.mydomain\\.com</host>
  103.         <host desc="Regex pattern of hostname to allow or deny." allow="true">nextcloud.mydomain.com</host>
  104.             <host desc="Regex pattern of hostname to allow or deny." allow="false">192\.168\.1\.1</host>
  105.             <max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>
  106.         </wopi>
  107.         <webdav desc="Allow/deny webdav storage. Mutually exclusive with wopi." allow="false">
  108.             <host desc="Hostname to allow" allow="false">localhost</host>
  109.         </webdav>
  110.     </storage>
  111.  
  112.     <tile_cache_persistent desc="Should the tiles persist between two editing sessions of the given document?" type="bool" default="true">true</tile_cache_persistent>
  113.  
  114.     <admin_console desc="Web admin console settings.">
  115.         <enable desc="Enable the admin console functionality" type="bool" default="true">true</enable>
  116.         <enable_pam desc="Enable admin user authentication with PAM" type="bool" default="false">false</enable_pam>
  117.         <username desc="The username of the admin console. Ignored if PAM is enabled."></username>
  118.         <password desc="The password of the admin console. Deprecated on most platforms. Instead, use PAM or loolconfig to set up a secure password."></password>
  119.     </admin_console>
  120.  
  121.     <monitors desc="Addresses of servers we connect to on start for monitoring">
  122.     </monitors>
  123.  
  124. </config>
Advertisement
RAW Paste Data Copied
Advertisement