-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
324 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[program:example] | ||
command=node %(ENV_SNAP)s/var/www/onlyoffice/documentserver-example/nodejs/bin/www | ||
directory=%(ENV_SNAP)s/var/www/onlyoffice/documentserver-example/nodejs/bin/ | ||
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_SNAP_DATA)s/etc/onlyoffice/documentserver-example,NODE_DISABLE_COLORS=1 | ||
stdout_logfile=%(ENV_SNAP_DATA)s/var/log/onlyoffice/documentserver-example/out.log | ||
stdout_logfile_backups=0 | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=%(ENV_SNAP_DATA)s/var/log/onlyoffice/documentserver-example/err.log | ||
stderr_logfile_backups=0 | ||
stderr_logfile_maxbytes=0 | ||
autostart=false | ||
autorestart=true | ||
redirect_stderr=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[group:ds] | ||
programs=docservice,converter,spellchecker | ||
programs=docservice,converter,spellchecker,example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,11 +102,21 @@ parts: | |
rm -r $SNAPCRAFT_PART_INSTALL/sdkjs-plugins | ||
rm -r $SNAPCRAFT_PART_INSTALL/server | ||
rm -r $SNAPCRAFT_PART_INSTALL/web-apps | ||
rm -r $SNAPCRAFT_PART_INSTALL/example | ||
DIR="$SNAPCRAFT_PART_INSTALL/var/www/onlyoffice/documentserver" | ||
mkdir -p $DIR | ||
mkdir -p $DIR-example | ||
rm -r ./server/welcome | ||
mv ./example/* $DIR-example | ||
rm -r ./example | ||
cp -r * $DIR | ||
mkdir -p $SNAPCRAFT_PART_INSTALL/etc/onlyoffice/documentserver | ||
mv $DIR/server/Common/config/* $SNAPCRAFT_PART_INSTALL/etc/onlyoffice/documentserver | ||
DIR_ETC="$SNAPCRAFT_PART_INSTALL/etc/onlyoffice/documentserver" | ||
mkdir -p $DIR_ETC | ||
mv $DIR/server/Common/config/* $DIR_ETC | ||
#example | ||
mkdir -p $DIR_ETC-example | ||
sed -i -e 's/\/var\/lib\/onlyoffice/\/var\/snap\/onlyoffice-ds\/current\/var\/lib\/onlyoffice/' $DIR-example/nodejs/config/production-linux.json | ||
mv $DIR-example/nodejs/config/* $DIR_ETC-example | ||
# documentserver-generate-allfonts.sh | ||
OUTDIR="/var/snap/onlyoffice-ds/current/var/www/onlyoffice/documentserver" | ||
#fonts | ||
|
@@ -281,6 +291,7 @@ parts: | |
ds-docservice.conf: etc/supervisor/conf.d/ds-docservice.conf | ||
ds-converter.conf: etc/supervisor/conf.d/ds-converter.conf | ||
ds-spellchecker.conf: etc/supervisor/conf.d/ds-spellchecker.conf | ||
ds-example.conf: etc/supervisor/conf.d/ds-example.conf | ||
ds.conf: etc/supervisor/conf.d/ds.conf | ||
ds.conf.tmpl: etc/onlyoffice/documentserver/nginx/ds.conf.tmpl | ||
ds-ssl.conf.tmpl: etc/onlyoffice/documentserver/nginx/ds-ssl.conf.tmpl | ||
|
@@ -294,3 +305,13 @@ parts: | |
nginx-start.sh: usr/sbin/nginx-start.sh | ||
generate-all-fonts.sh: usr/sbin/generate-all-fonts.sh | ||
|
||
welcome: | ||
plugin: dump | ||
source: ./welcome/ | ||
organize: | ||
index.html: var/www/onlyoffice/documentserver/server/welcome/index.html | ||
css/favicon.ico: var/www/onlyoffice/documentserver/server/welcome/css/favicon.ico | ||
css/logo.png: var/www/onlyoffice/documentserver/server/welcome/css/logo.png | ||
css/[email protected]: var/www/onlyoffice/documentserver/server/welcome/css/[email protected] | ||
css/stylesheet.css: var/www/onlyoffice/documentserver/server/welcome/css/stylesheet.css | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
/* | ||
* | ||
* (c) Copyright Ascensio System Limited 2010-2020 | ||
* | ||
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU | ||
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html). | ||
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that | ||
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights. | ||
* | ||
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR | ||
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html | ||
* | ||
* You can contact Ascensio System SIA by email at [email protected] | ||
* | ||
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display | ||
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3. | ||
* | ||
* Pursuant to Section 7 § 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains | ||
* relevant author attributions when distributing the software. If the display of the logo in its graphic | ||
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE" | ||
* in every copy of the program you distribute. | ||
* Pursuant to Section 7 § 3(e) we decline to grant you any rights under trademark law for use of our trademarks. | ||
* | ||
*/ | ||
|
||
html { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
body { | ||
background: #fff; | ||
color: #333; | ||
font-family: 'Open Sans', sans-serif; | ||
font-size: 12px; | ||
font-weight: normal; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
text-decoration: none; | ||
} | ||
|
||
form { | ||
height: 100%; | ||
} | ||
|
||
div { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
a, a:hover, a:visited { | ||
color: #333; | ||
} | ||
|
||
header { | ||
height: 44px; | ||
background: #3D4A6B; | ||
height: 80px; | ||
margin: 0 auto; | ||
min-width: 600px; | ||
width: auto; | ||
} | ||
|
||
header img { | ||
margin: 12px 0 0 16px; | ||
} | ||
|
||
.main-panel { | ||
margin: 80px auto 16px; | ||
width: 600px; | ||
} | ||
|
||
.portal-name { | ||
font-size: 20px; | ||
} | ||
|
||
.portal-descr { | ||
display: inline-block; | ||
line-height: 20px; | ||
margin-bottom: 20px; | ||
width: 600px; | ||
} | ||
|
||
pre { | ||
border: 1px solid #CCC; | ||
background-color: #fff; | ||
border-radius: 3px; | ||
display: block; | ||
font-family: Monaco,Andale Mono,Courier New,monospace; | ||
font-size: 12px; | ||
line-height: 18px; | ||
margin: 18px 0 24px; | ||
padding: 8px; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
} | ||
|
||
pre.hljs { | ||
padding-left: 35px; | ||
} | ||
|
||
.features-list { | ||
padding-left: 16px; | ||
list-style: outside none disc; | ||
line-height: 20px; | ||
margin-bottom: 20px; | ||
margin-top: 0px; | ||
} | ||
|
||
footer { | ||
text-align: right; | ||
width: auto; | ||
margin-bottom: 15px; | ||
margin-right: 15px; | ||
} | ||
|
||
.help-block span { | ||
font-size: 16px; | ||
line-height: 26px; | ||
} | ||
|
||
.clearFix:after { | ||
content: "."; | ||
display: block; | ||
height: 0; | ||
clear: both; | ||
visibility: hidden; | ||
} |
Oops, something went wrong.