Install Collabora

This commit is contained in:
2020-12-07 21:55:23 +00:00
parent 6a465ffcd5
commit dd81fe9998
4 changed files with 94 additions and 11 deletions

15
Vagrantfile vendored
View File

@@ -50,14 +50,15 @@ Vagrant.configure("2") do |config|
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# Customize the amount of memory on the VM:
vb.memory = 4096
vb.cpus = 2
end
# View the documentation for the provider you are using for more
# information on available options.

View File

@@ -66,6 +66,32 @@ services:
- db
- redis
- nginx
extra_hosts:
- "tower.scarif.local:${LOCAL_IP}"
- "office.scarif.local:${LOCAL_IP}"
collabora:
image: collabora/code
restart: always
cap_add:
- MKNOD
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- DONT_GEN_SSL_CERT="True"
- domain=tower.${DOMAIN}
- cert_domain=office.${DOMAIN}
- server_name=office.${DOMAIN}
- username=${COLLABORA_USER}
- password=${COLLABORA_PASSWORD}
- "extra_params=-o:ssl.enable=false --o:ssl.termination=true"
- "dictionaries=de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru ro"
networks:
- nginx
extra_hosts:
- "tower.scarif.local:${LOCAL_IP}"
- "office.scarif.local:${LOCAL_IP}"
gitea:
image: gitea/gitea:1
@@ -130,6 +156,7 @@ services:
- monica
- nextcloud
- gitea
- collabora
- certs
ports:
- 80:80

View File

@@ -1,3 +0,0 @@
MYSQL_PASSWORD=secret
MYSQL_DATABASE=nextcloud
MYSQL_USER=chris

View File

@@ -340,6 +340,64 @@ http {
}
}
upstream collabora-handler {
server collabora:9980;
}
server {
listen 443 ssl;
server_name office.scarif.local;
ssl_certificate /etc/nginx/certs/scarif.local.crt;
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
# static files
location ^~ /loleaflet {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass http://collabora-handler;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ~ ^/lool {
proxy_pass http://collabora-handler;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass http://collabora-handler;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
location / {
proxy_pass http://collabora-handler;
}
}
upstream gitea-handler {
server gitea:3000;
}