Skip to content

Commit

Permalink
Fix bug #56746 : Wrong include path in nginx config (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
romandemidov committed Apr 26, 2022
1 parent 119db53 commit 7a3dcb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ parts:
mkdir -p $NGINX_DIR/includes
##ds.conf.tmpl
cp common/documentserver/nginx/ds.conf.tmpl.m4 $NGINX_DIR/ds.conf.tmpl
sed -i -e 's/M4_NGINX_CONF/\/snap\/onlyoffice-ds\/current\/etc\/onlyoffice\/documentserver\/nginx\/includes/' $NGINX_DIR/ds.conf.tmpl
sed -i -e 's/M4_NGINX_CONF/\/var\/snap\/onlyoffice-ds\/current\/etc\/onlyoffice\/documentserver\/nginx\/includes/' $NGINX_DIR/ds.conf.tmpl
sed -i -e 's/80/DS_PORT/' $NGINX_DIR/ds.conf.tmpl
sed -i -r 's/(server_tokens off;)/\1\n #allow 127.0.0.1;\n #deny all;/' \
$NGINX_DIR/ds.conf.tmpl
##ds-ssl.conf.tmpl
cp common/documentserver/nginx/ds-ssl.conf.tmpl.m4 $NGINX_DIR/ds-ssl.conf.tmpl
sed -i -e 's/M4_NGINX_CONF/\/snap\/onlyoffice-ds\/current\/etc\/onlyoffice\/documentserver\/nginx\/includes/' $NGINX_DIR/ds-ssl.conf.tmpl
sed -i -e 's/M4_NGINX_CONF/\/var\/snap\/onlyoffice-ds\/current\/etc\/onlyoffice\/documentserver\/nginx\/includes/' $NGINX_DIR/ds-ssl.conf.tmpl
sed -i -e 's/80/DS_PORT/' $NGINX_DIR/ds-ssl.conf.tmpl
sed -i -e 's/443/DSS_PORT/' $NGINX_DIR/ds-ssl.conf.tmpl
sed -i -r 's/(server_tokens off;)/\1\n #allow 127.0.0.1;\n #deny all;/' \
Expand Down

0 comments on commit 7a3dcb3

Please sign in to comment.