no message
This commit is contained in:
parent
543bc5244f
commit
55decb4dbc
@ -6,7 +6,6 @@ APP_URL=http://localhost
|
||||
|
||||
APP_PORT=2222
|
||||
APP_PORT_SSL=2223
|
||||
APP_PORT_ONLYOFFICE=2224
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_LEVEL=debug
|
||||
|
@ -6,7 +6,6 @@ APP_URL=http://localhost
|
||||
|
||||
APP_PORT=2222
|
||||
APP_PORT_SSL=2223
|
||||
APP_PORT_ONLYOFFICE=2224
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_LEVEL=debug
|
||||
|
14
cmd
14
cmd
@ -32,6 +32,19 @@ supervisorctl_restart() {
|
||||
fi
|
||||
}
|
||||
|
||||
check_docker() {
|
||||
docker -v &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${Error} ${RedBG} 未安装 Docker!${Font}"
|
||||
exit 1
|
||||
fi
|
||||
docker-compose -v &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${Error} ${RedBG} 未安装 Docker-compose!${Font}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
check_node() {
|
||||
npm -v > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
@ -86,6 +99,7 @@ env_init() {
|
||||
|
||||
COMPOSE="docker-compose"
|
||||
env_init
|
||||
check_docker
|
||||
|
||||
if [ $# -gt 0 ];then
|
||||
if [[ "$1" == "init" ]] || [[ "$1" == "install" ]]; then
|
||||
|
@ -81,9 +81,7 @@ services:
|
||||
|
||||
office:
|
||||
container_name: "dooteak-office-${DOCKER_ID}"
|
||||
image: "onlyoffice/documentserver"
|
||||
ports:
|
||||
- "${APP_PORT_ONLYOFFICE}:80"
|
||||
image: "onlyoffice/documentserver:6.3.1.32"
|
||||
volumes:
|
||||
- ./docker/office/data:/var/www/onlyoffice/Data
|
||||
- ./docker/office/logs:/var/log/onlyoffice
|
||||
|
@ -2,10 +2,14 @@ map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
upstream swoole {
|
||||
upstream service {
|
||||
server 10.22.22.2:20000 weight=5 max_fails=3 fail_timeout=30s;
|
||||
keepalive 16;
|
||||
}
|
||||
upstream office {
|
||||
server 10.22.22.6 weight=5 max_fails=3 fail_timeout=30s;
|
||||
keepalive 16;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
@ -28,6 +32,22 @@ server {
|
||||
allow all;
|
||||
}
|
||||
|
||||
location ~* ^/(6.3.1-32|cache/files|web-apps/apps)/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Real-PORT $remote_port;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Scheme $scheme;
|
||||
proxy_set_header Server-Protocol $server_protocol;
|
||||
proxy_set_header Server-Name $server_name;
|
||||
proxy_set_header Server-Addr $server_addr;
|
||||
proxy_set_header Server-Port $server_port;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_pass http://office;
|
||||
}
|
||||
|
||||
location =/ws {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -41,7 +61,7 @@ server {
|
||||
proxy_set_header Server-Port $server_port;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_pass http://swoole;
|
||||
proxy_pass http://service;
|
||||
}
|
||||
|
||||
location @laravels {
|
||||
@ -56,7 +76,7 @@ server {
|
||||
proxy_set_header Server-Name $server_name;
|
||||
proxy_set_header Server-Addr $server_addr;
|
||||
proxy_set_header Server-Port $server_port;
|
||||
proxy_pass http://swoole;
|
||||
proxy_pass http://service;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,8 +85,7 @@ export default {
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const uri = new URL(this.$store.state.method.apiUrl('web-apps'));
|
||||
$A.loadScript(`http://${uri.hostname}:2224/web-apps/apps/api/documents/api.js`, () => {
|
||||
$A.loadScript("web-apps/apps/api/documents/api.js", () => {
|
||||
this.loadFile()
|
||||
})
|
||||
},
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="page-manage">
|
||||
<div v-show="userId > 0" class="page-manage">
|
||||
<div class="manage-box-menu">
|
||||
<Dropdown
|
||||
class="manage-box-dropdown"
|
||||
|
Loading…
x
Reference in New Issue
Block a user