Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
LibreOffice:Factory
libreoffice-online
loolwsd-config.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File loolwsd-config.patch of Package libreoffice-online
diff -Nur online-libreoffice-7.0.0.2/configure.ac online-libreoffice-7.0.0.2-new/configure.ac --- online-libreoffice-7.0.0.2/configure.ac 2020-07-24 19:59:10.000000000 +0800 +++ online-libreoffice-7.0.0.2-new/configure.ac 2020-08-10 22:27:14.029507561 +0800 @@ -295,7 +295,7 @@ ENABLE_DEBUG=false ENABLE_DEBUG_PROTOCOL=false LOOLWSD_LOGLEVEL="warning" -LOOLWSD_LOG_TO_FILE="false" +LOOLWSD_LOG_TO_FILE="true" LOOLWSD_LOGFILE="/var/log/loolwsd.log" LOOLWSD_ANONYMIZE_USER_DATA=false LOLEAFLET_LOGGING="false" diff -Nur online-libreoffice-7.0.0.2/loolwsd.service online-libreoffice-7.0.0.2-new/loolwsd.service --- online-libreoffice-7.0.0.2/loolwsd.service 2020-07-24 19:59:10.000000000 +0800 +++ online-libreoffice-7.0.0.2-new/loolwsd.service 2020-08-12 21:46:02.189912220 +0800 @@ -4,7 +4,7 @@ [Service] EnvironmentFile=-/etc/sysconfig/loolwsd -ExecStart=/usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd +ExecStart=/usr/bin/loolwsd --version KillSignal=SIGINT TimeoutStopSec=120 User=lool diff -Nur online-libreoffice-7.0.0.2/loolwsd.xml.in online-libreoffice-7.0.0.2-new/loolwsd.xml.in --- online-libreoffice-7.0.0.2/loolwsd.xml.in 2020-07-24 19:59:10.000000000 +0800 +++ online-libreoffice-7.0.0.2-new/loolwsd.xml.in 2020-08-12 21:30:36.045050806 +0800 @@ -5,18 +5,18 @@ <allowed_languages desc="List of supported languages of Writing Aids (spell checker, grammar checker, thesaurus, hyphenation) on this instance. Allowing too many has negative effect on startup performance." default="de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru">de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru</allowed_languages> - <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> - <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> + <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="false" default="/var/lib/libreoffice-online/systemplate">/var/lib/libreoffice-online/systemplate</sys_template_path> + <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="false" default="/var/lib/libreoffice-online/jails">/var/lib/libreoffice-online/jails</child_root_path> - <server_name desc="External hostname:port of the server running loolwsd. If empty, it's derived from the request (please set it if this doesn't work). Must be specified when behind a reverse-proxy or when the hostname is not reachable directly." type="string" default=""></server_name> - <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/../"></file_server_root_path> + <server_name desc="External hostname:port of the server running loolwsd. If empty, it's derived from the request (please set it if this doesn't work). Must be specified when behind a reverse-proxy or when the hostname is not reachable directly." type="string" default="">office.example.net:9980</server_name> + <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="false" default="/usr/share/loolwsd">/usr/share/loolwsd</file_server_root_path> <memproportion desc="The maximum percentage of system memory consumed by all of the @APP_NAME@, after which we start cleaning up idle documents" type="double" default="80.0"></memproportion> <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> <per_document desc="Document-specific settings, including LO Core settings."> <max_concurrency desc="The maximum number of threads to use while processing a document." type="uint" default="4">4</max_concurrency> <batch_priority desc="A (lower) priority for use by batch eg. convert-to processes to avoid starving interactive ones" type="uint" default="5">5</batch_priority> - <document_signing_url desc="The endpoint URL of signing server, if empty the document signing is disabled" type="string" default="@VEREIGN_URL@">@VEREIGN_URL@</document_signing_url> + <document_signing_url desc="The endpoint URL of signing server, if empty the document signing is disabled" type="string" default=""></document_signing_url> <redlining_as_comments desc="If true show red-lines as comments" type="bool" default="false">false</redlining_as_comments> <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> <!-- Idle save and auto save are checked every 30 seconds --> @@ -48,11 +48,11 @@ <logging> <color type="bool">true</color> - <level type="string" desc="Can be 0-8, or none (turns off logging), fatal, critical, error, warning, notice, information, debug, trace" default="@LOOLWSD_LOGLEVEL@">@LOOLWSD_LOGLEVEL@</level> - <protocol type="bool" descr="Enable minimal client-site JS protocol logging from the start">@ENABLE_DEBUG_PROTOCOL@</protocol> - <file enable="@LOOLWSD_LOG_TO_FILE@"> - <property name="path" desc="Log file path.">@LOOLWSD_LOGFILE@</property> - <property name="rotation" desc="Log file rotation strategy. See Poco FileChannel.">never</property> + <level type="string" desc="Can be 0-8, or none (turns off logging), fatal, critical, error, warning, notice, information, debug, trace" default="warning">warning</level> + <protocol type="bool" descr="Enable minimal client-site JS protocol logging from the start">false</protocol> + <file enable="false"> + <property name="path" desc="Log file path.">/var/log/libreoffice-online/libreoffice-online.log</property> + <property name="rotation" desc="Log file rotation strategy. See Poco FileChannel.">weekly</property> <property name="archive" desc="Append either timestamp or number to the archived log filename.">timestamp</property> <property name="compress" desc="Enable/disable log file compression.">true</property> <property name="purgeAge" desc="The maximum age of log files to preserve. See Poco FileChannel.">10 days</property> @@ -61,12 +61,12 @@ <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> </file> <anonymize> - <anonymize_user_data type="bool" desc="Enable to anonymize/obfuscate of user-data in logs. If default is true, it was forced at compile-time and cannot be disabled." default="@LOOLWSD_ANONYMIZE_USER_DATA@">@LOOLWSD_ANONYMIZE_USER_DATA@</anonymize_user_data> + <anonymize_user_data type="bool" desc="Enable to anonymize/obfuscate of user-data in logs. If default is true, it was forced at compile-time and cannot be disabled." default="false">false</anonymize_user_data> <anonymization_salt type="uint" desc="The salt used to anonymize/obfuscate user-data in logs. Use a secret 64-bit random number." default="82589933">82589933</anonymization_salt> </anonymize> </logging> - <loleaflet_logging desc="Logging in the browser console" default="@LOLEAFLET_LOGGING@">@LOLEAFLET_LOGGING@</loleaflet_logging> + <loleaflet_logging desc="Logging in the browser console" default="false">false</loleaflet_logging> <trace desc="Dump commands and notifications for replay. When 'snapshot' is true, the source file is copied to the path first." enable="false"> <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> @@ -98,11 +98,11 @@ </net> <ssl desc="SSL settings"> - <enable type="bool" desc="Controls whether SSL encryption between browser and loolwsd is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="@ENABLE_SSL@">@ENABLE_SSL@</enable> + <enable type="bool" desc="Controls whether SSL encryption between browser and loolwsd is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="true">true</enable> <termination desc="Connection via proxy where loolwsd acts as working via https, but actually uses http." type="bool" default="true">false</termination> - <cert_file_path desc="Path to the cert file" relative="false">/etc/loolwsd/cert.pem</cert_file_path> - <key_file_path desc="Path to the key file" relative="false">/etc/loolwsd/key.pem</key_file_path> - <ca_file_path desc="Path to the ca file" relative="false">/etc/loolwsd/ca-chain.cert.pem</ca_file_path> + <cert_file_path desc="Path to the cert file" relative="false">/etc/letsencrypt/live/office.example.net/cert.pem</cert_file_path> + <key_file_path desc="Path to the key file" relative="false">/etc/letsencrypt/live/office.example.net/privkey.pem</key_file_path> + <ca_file_path desc="Path to the ca file" relative="false">/etc/letsencrypt/live/office.example.net/fullchain.pem</ca_file_path> <cipher_list desc="List of OpenSSL ciphers to accept" default="ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"></cipher_list> <hpkp desc="Enable HTTP Public key pinning" enable="false" report_only="false"> <max_age desc="HPKP's max-age directive - time in seconds browser should remember the pins" enable="true">1000</max_age> @@ -124,8 +124,8 @@ </watermark> <welcome> - <enable type="bool" desc="Controls whether the welcome screen should be shown to the users on new install and updates." default="@ENABLE_WELCOME_MESSAGE@">@ENABLE_WELCOME_MESSAGE@</enable> - <enable_button type="bool" desc="Controls whether the welcome screen should have an explanatory button instead of an X button to close the dialog." default="@ENABLE_WELCOME_MESSAGE_BUTTON@">@ENABLE_WELCOME_MESSAGE_BUTTON@</enable_button> + <enable type="bool" desc="Controls whether the welcome screen should be shown to the users on new install and updates." default="false">false</enable> + <enable_button type="bool" desc="Controls whether the welcome screen should have an explanatory button instead of an X button to close the dialog." default="false">false</enable_button> <path desc="Path to 'welcome-$lang.html' files served on first start or when the version changes. When empty, defaults to the Release notes." type="path" relative="true" default="loleaflet/welcome"></path> </welcome> @@ -133,6 +133,7 @@ <filesystem allow="false" /> <wopi desc="Allow/deny wopi storage. Mutually exclusive with webdav." allow="true"> <host desc="Regex pattern of hostname to allow or deny." allow="true">localhost</host> + <host desc="Regex pattern of hostname to allow or deny." allow="true">wopi.example.net</host> <host desc="Regex pattern of hostname to allow or deny." allow="true">10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host> <host desc="Regex pattern of hostname to allow or deny." allow="true">172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3}</host> <host desc="Regex pattern of hostname to allow or deny." allow="true">172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3}</host> @@ -163,8 +164,8 @@ <admin_console desc="Web admin console settings."> <enable desc="Enable the admin console functionality" type="bool" default="true">true</enable> <enable_pam desc="Enable admin user authentication with PAM" type="bool" default="false">false</enable_pam> - <username desc="The username of the admin console. Ignored if PAM is enabled."></username> - <password desc="The password of the admin console. Deprecated on most platforms. Instead, use PAM or loolconfig to set up a secure password."></password> + <username desc="The username of the admin console. Ignored if PAM is enabled.">opensuse</username> + <password desc="The password of the admin console. Deprecated on most platforms. Instead, use PAM or loolconfig to set up a secure password.">gecko2020</password> </admin_console> <monitors desc="Addresses of servers we connect to on start for monitoring"> diff -Nur online-libreoffice-7.0.0.2/tools/Config.cpp online-libreoffice-7.0.0.2-new/tools/Config.cpp --- online-libreoffice-7.0.0.2/tools/Config.cpp 2020-07-24 19:59:10.000000000 +0800 +++ online-libreoffice-7.0.0.2-new/tools/Config.cpp 2020-08-08 16:36:42.925030008 +0800 @@ -364,7 +364,7 @@ } else if (args[0] == "update-system-template") { - const char command[] = "loolwsd-systemplate-setup /opt/lool/systemplate " LO_PATH " >/dev/null 2>&1"; + const char command[] = "loolwsd-systemplate-setup /var/lib/libreoffice-online/systemplate " LO_PATH " >/dev/null 2>&1"; std::cout << "Running the following command:" << std::endl << command << std::endl;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor